2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 18:50:28 +00:00

change git cmd used to get current branch

This commit is contained in:
Bruce Potter
2013-08-27 11:23:22 -04:00
parent 9c0032b3c1
commit e313b49839

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