Created
February 5, 2013 20:48
-
-
Save dkavanagh/4717519 to your computer and use it in GitHub Desktop.
This script is called by passing in a new branch name. It is used by eucalyptus where we have sub-modules that require updating as well as the top level refs.
Errors will cause things to stop (like changes not checked in).
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
git submodule foreach git checkout $1 | |
git submodule foreach git pull origin $1 | |
git checkout $1 | |
git pull origin $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment