Closed skizz closed 12 years ago
Any ideas on Git commands we could use to do this? Basically, what do you run on your dev machines to get all submodules up-to-date?
Here's what I do:
task :checkout_submodules_hack do
FileUtils.cd('Cali/Frameworks/ShareKit') do
puts `pwd`
`git submodule init && git submodule update`
end
end
There's no single command in git that will do this. You need to parse the git log and run it recursively in every directory.
@skizz Could you confirm the fix in 7b0bc34 works? It worked like this for me https://gist.github.com/2021967.
I'll try and check today
Thanks
Chris Stevenson - http://955dreams.com Twitter: @chris_stevenson
On Mar 13, 2012, at 23:21, Srushtireply@reply.github.com wrote:
@skizz Could you confirm the fix in 7b0bc34 works? It worked like this for me https://gist.github.com/2021967.
Reply to this email directly or view it on GitHub: https://github.com/c42/goldberg/issues/127#issuecomment-4492948
I'm going to assume it's working. Please reopen this issue if the problem still exists.
It is common for projects in the iOS world to have recursive submodules. For a prominent example of this see ShareKit.
So it is not enough to do "git pull && git submodule init && git submodule update".
We should actually do something like:
recursively.