Skip to content

Commit

Permalink
Fix '--depth=1' repos
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Andras Fekete committed Sep 23, 2024
1 parent b990840 commit 09b5362
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fips-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09b5362

Please sign in to comment.