Initialize fallback ref

* devstack-vm-gate-wrap.sh: Set the fallback reference to an empty
string so it won't reuse a prior loop iteration's value.

Change-Id: I118a7b6488695ad7fe1b80d418548244bdf24452
This commit is contained in:
Jeremy Stanley
2013-10-16 03:59:20 +00:00
parent f085667d91
commit 80c6fd17af

View File

@@ -108,6 +108,7 @@ function setup_workspace {
# Ensure that we don't have stale remotes around
git remote prune origin
# See if this project has this branch, if not, use master
FALLBACK_ZUUL_REF=""
if ! git branch -a |grep remotes/origin/$BRANCH>/dev/null; then
BRANCH=master
FALLBACK_ZUUL_REF=$(echo $ZUUL_REF | sed -e "s,$ZUUL_BRANCH,master,")