changeset 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 369d869082fd
children 0cd241f35c40
files .shell.d/50.vcs_functions.sh
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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