change git cmd used to get current branch

This commit is contained in:
Bruce Potter 2013-08-27 11:23:22 -04:00
parent 260d2a5746
commit b20f9ae848

View File

@ -88,7 +88,8 @@ fi
# for the git case, query the current branch and set REL (changing master to devel if necessary)
function setbranch {
#git checkout $BRANCH
REL=`git rev-parse --abbrev-ref HEAD`
#REL=`git rev-parse --abbrev-ref HEAD`
REL='git name-rev --name-only HEAD'
if [ "$REL" = "master" ]; then
REL="devel"
fi