From 79272b58619a3efd0452500b4529974b2d751780 Mon Sep 17 00:00:00 2001 From: Andras Fekete Date: Tue, 16 Jan 2024 13:39:26 -0500 Subject: [PATCH] Only take the latest from the repo. Don't need old history. --- fips-check.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fips-check.sh b/fips-check.sh index 8d116c196..d7aa627e4 100755 --- a/fips-check.sh +++ b/fips-check.sh @@ -305,9 +305,15 @@ fi pushd "$TEST_DIR" || exit 2 -if ! $GIT clone "$FIPS_REPO" fips; then +# Start from FIPS 140-2 cert3389 +OLDDATE="Tue Jan 9 13:29:37 2018 -0800" +if ! $GIT clone --filter=blob:none --no-checkout --shallow-since="$OLDDATE" "$FIPS_REPO" fips; then echo "fips-check: Couldn't check out FIPS repository." exit 1 +else + pushd fips || exit 2 + git checkout || exit 3 + popd || exit 2 fi checkout_files "${WOLFCRYPT_FILES[@]}" || exit 3