test-rebuild.sh: el6 git does not have branch --list option
This commit is contained in:
parent
649621d68e
commit
a7b6b974ed
@ -35,7 +35,7 @@ fi
|
||||
|
||||
fedpkg switch-branch $BRANCH
|
||||
|
||||
if [ "* $BRANCH" != "$(git branch --list $BRANCH)" ]; then
|
||||
if [ "* $BRANCH" != "$(git branch | grep '^*')" ]; then
|
||||
echo "Git branch does not match Fedora installation!"
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user