From 6f9ab870c9ce98c203502134888a959877873176 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 11 Jun 2020 12:02:16 -0400 Subject: [PATCH] ceph-website: Support GIT_BRANCH with multiple slashes The SoftIron folks like to use branch names like 'origin/feature/multingual' so let's support that. Signed-off-by: David Galloway --- ceph-website/build/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 ceph-website/build/build diff --git a/ceph-website/build/build b/ceph-website/build/build old mode 100644 new mode 100755 index 4cbab0c5..4da171d6 --- a/ceph-website/build/build +++ b/ceph-website/build/build @@ -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} -- 2.47.3