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.
This commit is contained in:
Andras Fekete
2024-09-23 16:16:08 -04:00
parent b9908409d4
commit 09b5362ed8

View File

@@ -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