]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
xxx: workaround branches with slashes (again) 2553/head
authorJohn Mulligan <phlogistonjohn@asynchrono.us>
Wed, 18 Mar 2026 21:45:44 +0000 (17:45 -0400)
committerJohn Mulligan <phlogistonjohn@asynchrono.us>
Wed, 18 Mar 2026 21:45:44 +0000 (17:45 -0400)
Signed-off-by: John Mulligan <phlogistonjohn@asynchrono.us>
scripts/bwc.sh

index 123c47325b6e19f810fad511ba06a0e371d159e5..66838668591450fdf9b5ba505d623aef02a85f52 100644 (file)
@@ -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[@]}"
 }