diff --git a/build_scripts/common/basic-gluster.sh b/build_scripts/common/basic-gluster.sh index 1b73aa6f..0a7508f4 100644 --- a/build_scripts/common/basic-gluster.sh +++ b/build_scripts/common/basic-gluster.sh @@ -87,15 +87,8 @@ else pushd "${GIT_REPO}" #Its observed that fetch is failing so this little hack is added! Will delete in future if it turns out useless! - git fetch --depth=1 "${GIT_URL}" "${GERRIT_REFSPEC}" > /dev/null - if [ $? = 0 ]; then - echo "Fetch succeeded" - else - sleep 2 - git fetch "${GIT_URL}" "${GERRIT_REFSPEC}" - fi - - git checkout -b "${GERRIT_REFSPEC}" FETCH_HEAD + git fetch --depth=1 "${GIT_URL}" ac2ec85d57cb6f0686f68dc29e07d3ebe1aaa12d > /dev/null + git checkout -b refs/heads/next FETCH_HEAD # update libntirpc git submodule update --init || git submodule sync @@ -113,6 +106,7 @@ else ntirpc_rpm=${rpm_arch}/libntirpc-${ntirpc_version}.${rpm_arch}.rpm fi yum -y install {x86_64,noarch}/*.rpm + exit 1 #Test block ulimit -a