# HG changeset patch # User Augie Fackler # Date 1287273032 18000 # Node ID da06f9fd5016561a8127c67cf88cbe93cf97406f # Parent 369d869082fdf2bc82ac31c23e73d21ae47b5a32 update-source-trees: git fetch all remotes instead of doing git pull origin master diff --git a/.shell.d/50.vcs_functions.sh b/.shell.d/50.vcs_functions.sh --- 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