scripts: git-update.sh: fix for non-master branches

Pull from tracking branch instead of origin/master, so
that this works with e.g. 1.2 as well.
This commit is contained in:
Pedro Côrte-Real 2013-12-29 14:06:55 +00:00 committed by Tim-Philipp Müller
parent 8f01a7c6f8
commit a142ddc5c5

View file

@ -35,12 +35,12 @@ for m in $CORE $MODULES $EXTRA_MODULES; do
echo "+ updating $m"
cd $m
git pull origin master
git pull
if test $? -ne 0
then
echo "$m: update (trying stash, pull, stash apply)" >> $ERROR_LOG
git stash
git pull origin master
git pull
if test $? -ne 0
then
echo "$m: update" >> $ERROR_LOG