Skip to content

Instantly share code, notes, and snippets.

@rdamen
Created December 24, 2008 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdamen/39627 to your computer and use it in GitHub Desktop.
Save rdamen/39627 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# pull all submodules
`git submodule`.each do |sub|
sub.match(/^.\w+\s(.+)\(.+\)$/)
puts "Pulling #{$1}"
`cd #{$1} && git checkout master && git pull`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment