Browse Source

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

Andras Fekete 3 months ago
parent
commit
79272b5861
1 changed files with 7 additions and 1 deletions
  1. 7 1
      fips-check.sh

+ 7 - 1
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