Skip to content

Commit 09b5362

Browse files
author
Andras Fekete
committed
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.
1 parent b990840 commit 09b5362

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

fips-check.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ function copy_fips_files() {
334334
done
335335
}
336336

337+
# Check to make sure this is not a shallow repo
338+
$GIT fetch --unshallow 2>/dev/null
339+
337340
if ! $GIT clone . "$TEST_DIR"; then
338341
echo "fips-check: Couldn't duplicate current working directory."
339342
exit 1

0 commit comments

Comments
 (0)