X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=utils%2Finfra_setup%2Fvm_dev_setup%2Fsetup_env.sh;h=795a0a6a84345d9b7e2cb130c4f08e3fa51e7fd4;hb=d30740bb6c80729281453878eda29abc32549161;hp=f1572e05f8b32395937c28c5e401f16ee2eea986;hpb=0cb54276e3b9aa3d531e574493206e2e3b5e5018;p=bottlenecks.git diff --git a/utils/infra_setup/vm_dev_setup/setup_env.sh b/utils/infra_setup/vm_dev_setup/setup_env.sh index f1572e05..795a0a6a 100755 --- a/utils/infra_setup/vm_dev_setup/setup_env.sh +++ b/utils/infra_setup/vm_dev_setup/setup_env.sh @@ -55,18 +55,22 @@ bottlenecks_download_repo() { echo "Bottlenecks: download bottlenecks repo" + sudo git config --global http.sslVerify false if [ -d $BOTTLENECKS_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 + sudo git fetch $BOTTLENECKS_REPO $GERRIT_REFSPEC_DEBUG && sudo 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 + cd $BOTTLENECKS_REPO_DIR + echo "fetch $GERRIT_REFSPEC_DEBUG" + sudo git fetch $BOTTLENECKS_REPO $GERRIT_REFSPEC_DEBUG && sudo git checkout FETCH_HEAD + cd - fi fi @@ -116,6 +120,7 @@ main() source $SCRIPT_DIR/common.sh bottlenecks_prepare_env + set -x bottlenecks_download_repo bottlenecks_config_hosts_ip bottlenecks_download_packages