[ghc-rpm-macros] test-rebuild.sh: el6 git does not have branch --list option

Jens Petersen petersen at fedoraproject.org
Thu Nov 28 10:21:42 UTC 2013


commit a7b6b974edb1cc7b98daadada121f74d97bfbf7d
Author: Jens Petersen <petersen at redhat.com>
Date:   Thu Nov 28 19:21:31 2013 +0900

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

 tests/test-rebuild.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/test-rebuild.sh b/tests/test-rebuild.sh
index 17d31db..b73d731 100755
--- a/tests/test-rebuild.sh
+++ b/tests/test-rebuild.sh
@@ -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


More information about the scm-commits mailing list