summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2015-05-14 12:18:43 -0400
committerGedare Bloom <gedare@rtems.org>2015-05-14 12:18:43 -0400
commit77f363310bf7a77947252a38d613e831bc5f4e2a (patch)
treee786f48685a191c270d4bd2ed16e32951883e180
parent242c162fc933f3770e5c986e097bd8f945030de8 (diff)
release.sh: use git branch instead of git status to determine current git branch
-rwxr-xr-xrelease-helpers/release.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/release-helpers/release.sh b/release-helpers/release.sh
index c03feda..8fda157 100755
--- a/release-helpers/release.sh
+++ b/release-helpers/release.sh
@@ -141,7 +141,7 @@ test -d .git
check_error $? "You are not in a git checkout"
# Do NOT do this on the master
-branch=`git status | grep "On branch " | sed -e 's/^# On branch //'`
+branch=`git branch | grep "*" | awk '{ print $2 }'`
if [ ${branch} = "master" ] ; then
fatal "You should be on a git branch before running this script"
fi