X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Futility%2Fcollectd_get_sources.sh;fp=ci%2Futility%2Fcollectd_get_sources.sh;h=59acf6c4f36ed9fb17def81fbaaabcd80d779b3c;hb=2d4b6c3388164977cf2d115af65c0b4a9e9df2a4;hp=69108e4f1a151330a89e8048cc9f84d39a9d2f8b;hpb=a35c425193d004f75e0404cd961bfc8adf3720c4;p=barometer.git diff --git a/ci/utility/collectd_get_sources.sh b/ci/utility/collectd_get_sources.sh index 69108e4f..59acf6c4 100755 --- a/ci/utility/collectd_get_sources.sh +++ b/ci/utility/collectd_get_sources.sh @@ -20,10 +20,11 @@ bash $DIR/check_git_repo.sh $COLLECTD_DIR $COLLECTD_REPO if [[ $? != 0 ]] then rm -rf $COLLECTD_DIR - git clone --branch $COLLECTD_BRANCH $COLLECTD_REPO $COLLECTD_DIR + git clone $COLLECTD_REPO $COLLECTD_DIR + cd $COLLECTD_DIR else cd $COLLECTD_DIR git reset HEAD --hard git pull - git checkout -f $COLLECTD_BRANCH fi +git checkout -f $COLLECTD_BRANCH