From 5d94576271c1c22aba8fe9906ba3aede83d282ff Mon Sep 17 00:00:00 2001 From: xiaodongwang Date: Fri, 29 Aug 2014 21:39:16 -0700 Subject: [PATCH] switch branch after git clone Change-Id: I04c802a0bc85220d2b51285f5704d5634022ed1f --- install/prepare.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/prepare.sh b/install/prepare.sh index a176f3f0..e3fae796 100755 --- a/install/prepare.sh +++ b/install/prepare.sh @@ -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