switch branch after git clone

Change-Id: I04c802a0bc85220d2b51285f5704d5634022ed1f
This commit is contained in:
xiaodongwang 2014-08-29 21:39:16 -07:00
parent 784d38c63f
commit 5d94576271

View File

@ -50,6 +50,7 @@ copy2dir()
echo "git clone $repo $destdir suceeded"
fi
cd $destdir
git checkout $git_branch
git reset --hard remotes/origin/$git_branch
fi
if [[ ! -z $ZUUL_REF || ! -z $GERRIT_REFSPEC ]]; then