4 URLBASE='ssh://165.213.202.130:29418/webplatform'
5 REPOS=( "src|$URLBASE/s-chromium.git" \
6 "src/third_party/WebKit|$URLBASE/s-blink" \
7 "src/third_party/skia|$URLBASE/s-skia.git" \
8 "src/v8|$URLBASE/s-v8" )
10 for K in ${REPOS[@]} ; do
14 if [ -d $REPOPATH ] ; then
15 pushd $REPOPATH 2>&1 > /dev/null
16 CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
17 if [ "x$CURRENT_BRANCH" == "x$BRANCH" ] ; then
18 echo Updating branch $BRANCH of $REPO in $REPOPATH
19 git fetch $REPO $BRANCH
22 echo Fetching branch $BRANCH of $REPO into $REPOPATH
23 git fetch $REPO $BRANCH:$BRANCH
28 echo Cloning branch $BRANCH of $REPO into $REPOPATH
29 git clone -b $BRANCH $REPO $REPOPATH