Skip to content

Commit 79272b5

Browse files
author
Andras Fekete
committed
Only take the latest from the repo. Don't need old history.
1 parent a51c8d5 commit 79272b5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

fips-check.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,15 @@ fi
305305

306306
pushd "$TEST_DIR" || exit 2
307307

308-
if ! $GIT clone "$FIPS_REPO" fips; then
308+
# Start from FIPS 140-2 cert3389
309+
OLDDATE="Tue Jan 9 13:29:37 2018 -0800"
310+
if ! $GIT clone --filter=blob:none --no-checkout --shallow-since="$OLDDATE" "$FIPS_REPO" fips; then
309311
echo "fips-check: Couldn't check out FIPS repository."
310312
exit 1
313+
else
314+
pushd fips || exit 2
315+
git checkout || exit 3
316+
popd || exit 2
311317
fi
312318

313319
checkout_files "${WOLFCRYPT_FILES[@]}" || exit 3

0 commit comments

Comments
 (0)