Merge "If there is no ZUUL_REF, don't fetch it."

This commit is contained in:
Jenkins
2012-11-07 08:44:41 +00:00
committed by Gerrit Code Review

View File

@@ -120,7 +120,8 @@ function setup_workspace {
fi
# See if Zuul prepared a ref for this project
if git fetch https://review.openstack.org/p/$PROJECT $ZUUL_REF; then
if [ "$ZUUL_REF" != "" ] && \
git fetch https://review.openstack.org/p/$PROJECT $ZUUL_REF; then
# It's there, so check it out.
git checkout FETCH_HEAD
git reset --hard FETCH_HEAD