Mercurial > dotfiles
diff .shell.d/50.vcs_functions.sh @ 233:da06f9fd5016
update-source-trees: git fetch all remotes instead of doing git pull origin master
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sat, 16 Oct 2010 18:50:32 -0500 |
parents | 0590f34b92a0 |
children | b14e669b98bf |
line wrap: on
line diff
--- a/.shell.d/50.vcs_functions.sh +++ b/.shell.d/50.vcs_functions.sh @@ -77,7 +77,9 @@ function update_source_trees() { git svn fetch elif [ -e .git ] ; then echo $aa 'is a git checkout, updating' - git pull origin master + for remote in $(git remote) ; do + git fetch $remote + done elif [ -e .hg ] ; then echo $aa 'is an hg checkout, updating' for hgpath in $(HGRCPATH=/dev/null hg paths | sed 's/.* = //g' | sort | uniq ) ; do