Changeset 77f3633 in rtems-testing


Ignore:
Timestamp:
May 14, 2015, 4:18:43 PM (4 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
1bbaa6e
Parents:
242c162
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-helpers/release.sh

    r242c162 r77f3633  
    142142
    143143# Do NOT do this on the master
    144 branch=`git status | grep "On branch " | sed -e 's/^# On branch //'`
     144branch=`git branch | grep "*" | awk '{ print $2 }'`
    145145if [ ${branch} = "master" ] ; then
    146146  fatal "You should be on a git branch before running this script"
Note: See TracChangeset for help on using the changeset viewer.