Repository: cloudstack
Updated Branches:
  refs/heads/4.4 e16414e56 -> bbaefb8e5


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

Signed-off-by: Rohit Yadav <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/bbaefb8e
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/bbaefb8e
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/bbaefb8e

Branch: refs/heads/4.4
Commit: bbaefb8e5def610a654fba907c8ec3f868416bdf
Parents: e16414e
Author: Rohit Yadav <[email protected]>
Authored: Fri Aug 8 20:25:41 2014 +0200
Committer: Rohit Yadav <[email protected]>
Committed: Fri Aug 8 20:27:00 2014 +0200

----------------------------------------------------------------------
 tools/appliance/build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bbaefb8e/tools/appliance/build.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh
index f29d8bf..4d0d1c9 100755
--- a/tools/appliance/build.sh
+++ b/tools/appliance/build.sh
@@ -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

Reply via email to