Skip to contentSkip to conversation

gfs2-utils: Fix up make-tarball.sh

PATCH New Andrew Price 1 participant 1 message Jul 6, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gfs2-utils: Fix up make-tarball.sh

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

---
 make-tarball.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
make-tarball.sh +1 -1
index 71d78fe..fd12195 100755
@@ -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
Signature · 1 line
1.7.5.4