diff --git a/devstack-vm-gate-wrap.sh b/devstack-vm-gate-wrap.sh index d8e733f0..59fccfd1 100755 --- a/devstack-vm-gate-wrap.sh +++ b/devstack-vm-gate-wrap.sh @@ -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