From 700351a81359e0a86b9dc0e16c6fe4a970ab3549 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Thu, 14 Aug 2025 11:14:34 -0400 Subject: [PATCH] test/buildah-bud/run-buildah-bud-tests: loosen the branch regexp Recognize that pseudoversions that look like v0.0.0-20250814150820-1f7f1d285d22 are also not real branch names. Signed-off-by: Nalin Dahyabhai --- test/buildah-bud/run-buildah-bud-tests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/buildah-bud/run-buildah-bud-tests b/test/buildah-bud/run-buildah-bud-tests index 0438fa553b..5a08d94e98 100755 --- a/test/buildah-bud/run-buildah-bud-tests +++ b/test/buildah-bud/run-buildah-bud-tests @@ -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=