CLOUDSTACK-7143: survive / in branch names

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

Branch: refs/heads/master
Commit: a8500ed73ea6873812e10e258d5a7db8446b33eb
Parents: 115b2cf
Author: Leo Simons <lsim...@schubergphilis.com>
Authored: Thu Sep 4 15:22:28 2014 +0200
Committer: Rohit Yadav <rohit.ya...@shapeblue.com>
Committed: Mon Sep 22 21:38:17 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a8500ed7/tools/appliance/build.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh
index db21dad..f9c6b75 100755
--- a/tools/appliance/build.sh
+++ b/tools/appliance/build.sh
@@ -125,7 +125,7 @@ clean_vbox="${clean_vbox:-}"
 # while building with vbox, we need a quite unique appliance name in order to 
prevent conflicts with multiple
 # concurrent executors on jenkins
 if [ -z "${branch}" ] ; then
- branch=`(git name-rev --no-undefined --name-only HEAD 2>/dev/null || echo 
unknown) | sed -e 's/remotes\/.*\///g'`
+ branch=`(git name-rev --no-undefined --name-only HEAD 2>/dev/null || echo 
unknown) | sed -e 's/remotes\/.*\///g' | sed -e 's|/|_|g'`
 fi
 
 branch_tag=

Reply via email to