Replace sed by --short

This commit is contained in:
Francesc Rosas 2015-02-03 00:08:03 +00:00 committed by Johan Hermansson
parent 97d0dda865
commit 27d8425e3d

View file

@ -51,7 +51,7 @@ giturl=${giturl%\.git}
# get current branch
if [ -z "$2" ]
then
branch=`git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||'`
branch=`git symbolic-ref -q --short HEAD`
else
branch="$2"
fi