srushti / goldberg

Goldberg is a lightweight CI server written in Ruby which worries about Bundler & RVM so that you don't have to.
Other
243 stars 29 forks source link

git submodule support is not recursive #127

Closed skizz closed 12 years ago

skizz commented 12 years ago

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.

srushti commented 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?

skizz commented 12 years ago

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.

srushti commented 12 years ago

@skizz Could you confirm the fix in 7b0bc34 works? It worked like this for me https://gist.github.com/2021967.

skizz commented 12 years ago

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

srushti commented 12 years ago

I'm going to assume it's working. Please reopen this issue if the problem still exists.