From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Price Date: Wed, 6 Jul 2011 13:46:14 +0100 Subject: [Cluster-devel] [PATCH] gfs2-utils: Fix up make-tarball.sh Message-ID: <1309956374-10719-1-git-send-email-anprice@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Fix the way that make-tarball.sh finds out the current git branch Signed-off-by: Andrew Price --- 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 -- 1.7.5.4