Created
December 24, 2008 09:28
-
-
Save rdamen/39627 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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