mirror of https://github.com/apache/cloudstack.git
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:
parent
a52a1cd4fc
commit
a0006a6990
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue