gfs2-utils: master - gfs2-utils: Fix up make-tarball.sh

Andrew Price andyp at fedoraproject.org
Wed Jul 6 13:15:47 UTC 2011


Gitweb:        http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=a2f794af4b74178fe1a88aea7491bee2cb083df3
Commit:        a2f794af4b74178fe1a88aea7491bee2cb083df3
Parent:        1093150cc11de634fcce19578d45966324fad028
Author:        Andrew Price <anprice at redhat.com>
AuthorDate:    Wed Jul 6 13:37:07 2011 +0100
Committer:     Andrew Price <anprice at redhat.com>
CommitterDate: Wed Jul 6 14:10:54 2011 +0100

gfs2-utils: Fix up make-tarball.sh

Fix the way that make-tarball.sh finds out the current git branch

Signed-off-by: Andrew Price <anprice at redhat.com>
---
 make-tarball.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/make-tarball.sh b/make-tarball.sh
index 71d78fe..fd12195 100755
--- a/make-tarball.sh
+++ b/make-tarball.sh
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 FILES=`git ls-files | sed -e's/^/gfs2-utils\//'`
-BRANCH=`git show-branch --current | sed -e's/.*\[//' -e's/\].*$//'`
+BRANCH=`git branch | grep '^\*' | cut -d' ' -f2`
 DESC=`git describe 2>/dev/null`
 
 if [ $? != 128 ]; then


More information about the cluster-commits mailing list