Only take the latest from the repo. Don't need old history.

pull/7131/head
Andras Fekete 2024-01-16 13:39:26 -05:00
parent a51c8d54d2
commit 79272b5861
1 changed files with 7 additions and 1 deletions

View File

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