continue;
fi
- git checkout -b $BRANCH origin/$BRANCH
+ if test $BRANCH = 'master'; then
+ git checkout $BRANCH
+ else
+ git checkout -b $BRANCH origin/$BRANCH
+ fi
+
git submodule init
git submodule update
cd $dir/$module/common
ref_from=`git log --pretty=format:%h -n 1 HEAD`
- git checkout -b $BRANCH origin/$BRANCH
+ if test $BRANCH = 'master'; then
+ git checkout $BRANCH
+ else
+ git checkout -b $BRANCH origin/$BRANCH
+ fi
git pull origin
ref_to=`git log --pretty=format:%h -n 1 HEAD`
echo updating common from $ref_from to $ref_to