change git cmd used to get current branch

This commit is contained in:
Bruce Potter
2013-08-27 12:35:08 -04:00
parent 1f2a5273e3
commit c23e0328fb

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