]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-website: Support GIT_BRANCH with multiple slashes 1585/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 11 Jun 2020 16:02:16 +0000 (12:02 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 11 Jun 2020 16:03:11 +0000 (12:03 -0400)
The SoftIron folks like to use branch names like 'origin/feature/multingual' so let's support that.

Signed-off-by: David Galloway <dgallowa@redhat.com>
ceph-website/build/build [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 4cbab0c..4da171d
@@ -4,7 +4,7 @@ set -ex
 ## TODO: Check if only the src/ dir changed and `exit 0` if only the ceph.io.git README or something else inconsequential changed.
 env
 
-BRANCH=`branch_slash_filter ${GIT_BRANCH}`
+BRANCH=$(echo $GIT_BRANCH | sed 's:.*/::')
 
 # Don't think this is even necessary
 #git checkout ${BRANCH}