comparison .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
comparison
equal deleted inserted replaced
232:369d869082fd 233:da06f9fd5016
75 elif [ -e .git/svn ] ; then 75 elif [ -e .git/svn ] ; then
76 echo $aa 'is a git-svn checkout, updating' 76 echo $aa 'is a git-svn checkout, updating'
77 git svn fetch 77 git svn fetch
78 elif [ -e .git ] ; then 78 elif [ -e .git ] ; then
79 echo $aa 'is a git checkout, updating' 79 echo $aa 'is a git checkout, updating'
80 git pull origin master 80 for remote in $(git remote) ; do
81 git fetch $remote
82 done
81 elif [ -e .hg ] ; then 83 elif [ -e .hg ] ; then
82 echo $aa 'is an hg checkout, updating' 84 echo $aa 'is an hg checkout, updating'
83 for hgpath in $(HGRCPATH=/dev/null hg paths | sed 's/.* = //g' | sort | uniq ) ; do 85 for hgpath in $(HGRCPATH=/dev/null hg paths | sed 's/.* = //g' | sort | uniq ) ; do
84 hg pull --update $hgpath 86 hg pull --update $hgpath
85 done 87 done