[rtems-testing commit] release.sh: use git branch instead of git status to determine current git branch

Gedare Bloom gedare at rtems.org
Thu May 14 16:19:23 UTC 2015


Module:    rtems-testing
Branch:    master
Commit:    77f363310bf7a77947252a38d613e831bc5f4e2a
Changeset: http://git.rtems.org/rtems-testing/commit/?id=77f363310bf7a77947252a38d613e831bc5f4e2a

Author:    Gedare Bloom <gedare at rtems.org>
Date:      Thu May 14 12:18:43 2015 -0400

release.sh: use git branch instead of git status to determine current git branch

---

 release-helpers/release.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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




More information about the vc mailing list