* [Cluster-devel] [PATCH] gfs2-utils: Fix up make-tarball.sh
@ 2011-07-06 12:46 Andrew Price
0 siblings, 0 replies; only message in thread
From: Andrew Price @ 2011-07-06 12:46 UTC (permalink / raw)
To: cluster-devel.redhat.com
Fix the way that make-tarball.sh finds out the current git branch
Signed-off-by: Andrew Price <anprice@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
--
1.7.5.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-06 12:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-06 12:46 [Cluster-devel] [PATCH] gfs2-utils: Fix up make-tarball.sh Andrew Price
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).