appliance: fix branch finding method from e16414e even Junio can be wrong

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit bbaefb8e5d)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2014-08-08 20:25:41 +02:00
parent 57f611df16
commit e71009a571
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ build_date=`date +%Y-%m-%d`
branch=
if [ -z "$branch" ] ; then
branch=`git symbolic-ref --short -q HEAD 2>/dev/null || echo unknown`
branch=`git name-rev --no-undefined --name-only HEAD 2>/dev/null || echo unknown | sed -e 's/remotes\/.*\///g'`
fi
rootdir=$PWD