summaryrefslogtreecommitdiffstats
path: root/utils/infra_setup/vm_dev_setup/setup_env.sh
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2016-01-04 08:58:23 +0000
committerQiLiang <liangqi1@huawei.com>2016-01-04 10:37:03 +0000
commit4307f8d1d2653ea5ba2029bd7720c1ea6a8cdb76 (patch)
tree511496028517b2d0004d0588ccd5ba48f0dcf252 /utils/infra_setup/vm_dev_setup/setup_env.sh
parent09f9a968d1078dc64bd971dd4dcd005c2a05c0e4 (diff)
Add ci run scirpts
JIRA: - Change-Id: I94a0ea01fa7df0e279a605457148fdc4f3f03fb8 Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'utils/infra_setup/vm_dev_setup/setup_env.sh')
-rwxr-xr-xutils/infra_setup/vm_dev_setup/setup_env.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/infra_setup/vm_dev_setup/setup_env.sh b/utils/infra_setup/vm_dev_setup/setup_env.sh
index 52579e0d..8ba76600 100755
--- a/utils/infra_setup/vm_dev_setup/setup_env.sh
+++ b/utils/infra_setup/vm_dev_setup/setup_env.sh
@@ -51,10 +51,17 @@ bottlenecks_download_repo()
if [ -d $BOTTELENECKS_REPO_DIR/.git ]; then
cd $BOTTLENECKS_REPO_DIR
sudo git pull origin master
+ if [ x"$GERRIT_REFSPEC_DEBUG" != x ]; then
+ sudo git fetch $BOTTLENECKS_REPO $GERRIT_REFSPEC_DEBUG && git checkout FETCH_HEAD
+ fi
cd -
else
sudo rm -rf $BOTTLENECKS_REPO_DIR
sudo git clone $BOTTLENECKS_REPO $BOTTLENECKS_REPO_DIR
+ if [ x"$GERRIT_REFSPEC_DEBUG" != x ]; then
+ sudo git fetch $BOTTLENECKS_REPO $GERRIT_REFSPEC_DEBUG && git checkout FETCH_HEAD
+ fi
+
fi
}