defunkt / cijoe

CI Joe is a fun Continuous Integration server. Unmaintained.
MIT License
1.05k stars 129 forks source link

Magic submodule handling #14

Closed kerinin closed 14 years ago

kerinin commented 14 years ago

It would be really cool if cijoe checked for submodules and updated them before running tests. I'm setting up the after-reset hook to do this, but it's a pain in the butt.

defunkt commented 14 years ago

What's your after-reset hook look like?

kerinin commented 14 years ago
cd <repo dir>
git submodule init
git submodule update

Nothing special, just inits and updates the repos. I put the init in there in case I added submodules. Not sure how this would handle removing submodules though

docteurklein commented 14 years ago

You could maybe try

git submodule update --init --recursive

in you after-reset hook,but that do not resolve the problem.