test-rebuild.sh: el6 git does not have branch --list option

This commit is contained in:
Jens Petersen 2013-11-28 19:21:31 +09:00
parent 649621d68e
commit a7b6b974ed

View File

@ -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