appliance: change the way we find git branch in build.sh

(cherry picked from commit 493c0a68d2)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	tools/appliance/build.sh
This commit is contained in:
Rohit Yadav 2014-08-08 15:42:53 +02:00
parent a52a1cd4fc
commit a0006a6990
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 status | grep '# On branch' | awk '{print $4}'`
branch=$(git rev-parse --abbrev-ref HEAD)
fi
if [ -z "$branch" ] ; then