From 09b5362ed89b82aa30880b1a4ddc7f76052a4eaa Mon Sep 17 00:00:00 2001 From: Andras Fekete Date: Mon, 23 Sep 2024 16:16:08 -0400 Subject: [PATCH] Fix '--depth=1' repos When the repo was checked out as a shallow copy, we need to unshallow so FIPS builds can successfully find all the required tags and branches. --- fips-check.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fips-check.sh b/fips-check.sh index a134bddabf..806c8a1426 100755 --- a/fips-check.sh +++ b/fips-check.sh @@ -334,6 +334,9 @@ function copy_fips_files() { done } +# Check to make sure this is not a shallow repo +$GIT fetch --unshallow 2>/dev/null + if ! $GIT clone . "$TEST_DIR"; then echo "fips-check: Couldn't duplicate current working directory." exit 1