From 80c6fd17af1986c859eab90001c2640e863f5a20 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 16 Oct 2013 03:59:20 +0000 Subject: [PATCH] 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 --- devstack-vm-gate-wrap.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/devstack-vm-gate-wrap.sh b/devstack-vm-gate-wrap.sh index e152bd10..f0a33455 100755 --- a/devstack-vm-gate-wrap.sh +++ b/devstack-vm-gate-wrap.sh @@ -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,")