From: Andrew Price <anprice@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] gfs2-utils: Fix up make-tarball.sh
Date: Wed, 6 Jul 2011 13:46:14 +0100 [thread overview]
Message-ID: <1309956374-10719-1-git-send-email-anprice@redhat.com> (raw)
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
reply other threads:[~2011-07-06 12:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1309956374-10719-1-git-send-email-anprice@redhat.com \
--to=anprice@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).