diff options
-rwxr-xr-x | release-helpers/release.sh | 2 |
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 |