From: John Mulligan Date: Wed, 18 Mar 2026 21:45:44 +0000 (-0400) Subject: xxx: workaround branches with slashes (again) X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2553%2Fhead;p=ceph-build.git xxx: workaround branches with slashes (again) Signed-off-by: John Mulligan --- diff --git a/scripts/bwc.sh b/scripts/bwc.sh index 123c47325..668386685 100644 --- a/scripts/bwc.sh +++ b/scripts/bwc.sh @@ -19,6 +19,8 @@ bwc() { # specify timeout in hours for $1 local timeout=$(($1*60*60)) shift + local current_branch=${GIT_BRANCH:-main} + current_branch=${current_branch//\//-} local args=() if [ "${NPMCACHE}" ]; then args+=(--npm-cache-path="${NPMCACHE}") @@ -27,7 +29,7 @@ bwc() { timeout "${timeout}" ./src/script/build-with-container.py \ -d "${DISTRO_BASE:-jammy}" \ --env-file="${PWD}/.env" \ - --current-branch="${GIT_BRANCH:-main}" \ + --current-branch="${current_branch}" \ -t"+$(bwc_arch)" \ "${args[@]}" }