diff options
author | Gedare Bloom <gedare@rtems.org> | 2015-05-14 12:18:43 -0400 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2015-05-14 12:18:43 -0400 |
commit | 77f363310bf7a77947252a38d613e831bc5f4e2a (patch) | |
tree | e786f48685a191c270d4bd2ed16e32951883e180 | |
parent | release.sh: New release script (diff) | |
download | rtems-testing-77f363310bf7a77947252a38d613e831bc5f4e2a.tar.bz2 |
release.sh: use git branch instead of git status to determine current git branch
-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 |