Fix branch check for proposal script
We no longer have remote branches in our git clones, just check for the proper local branch to exist. Change-Id: I43b9f10c3b41c6cb3eb215d6d4552f2205e76012
This commit is contained in:
@@ -122,9 +122,9 @@ for PROJECT in $PROJECTS; do
|
||||
fi
|
||||
pushd $PROJECT_DIR
|
||||
|
||||
# check whether the project has this branch or a suitable fallback
|
||||
# check whether the project has this branch
|
||||
BRANCH=""
|
||||
if git branch -a | grep -q "^ remotes/origin/$ZUUL_REFNAME$" ; then
|
||||
if git branch | grep -q "^ $ZUUL_REFNAME$" ; then
|
||||
BRANCH=$ZUUL_REFNAME
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user