Merge pull request #26827 from nalind/loosen-regexp

test/buildah-bud/run-buildah-bud-tests: loosen the branch regexp
This commit is contained in:
openshift-merge-bot[bot]
2025-08-15 09:16:57 +00:00
committed by GitHub

View File

@ -152,7 +152,7 @@ if [[ -n $do_checkout ]]; then
# will need a special unreleased version (go calls then "pseudoversions").
# In the usual case, we can do a shallow git clone:
shallow_checkout="--branch $buildah_version"
if [[ $buildah_version =~ .*-.*\.[0-9]{14}-.* ]]; then
if [[ $buildah_version =~ .*[0-9]{14}-.* ]] ; then
# ...but with a pseudoversion, we must git-clone the entire repo,
# then do a git checkout within it
shallow_checkout=