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