File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,10 +67,15 @@ jobs:
6767 # silently skipped this and every job built the 2024 submodule pin
6868 # while claiming to test master
6969 test -e wolfssl/.git || { echo "FAIL: wolfssl submodule not checked out"; exit 1; }
70- cd wolfssl
71- git fetch -q --depth 1 origin '${{ matrix.wolfssl_ref }}'
72- git checkout -q FETCH_HEAD
73- echo "wolfssl now at ${{ matrix.wolfssl_ref }}: $(git rev-parse --short HEAD)"
70+ # Replace the tree rather than fetching into it: checkout@v5 clones the
71+ # submodule shallow, and `git fetch --depth 1` then rewrites
72+ # .git/modules/*/shallow under git's own read -- "fatal: shallow file has
73+ # changed since we read it", which struck 1 leg in 6 while its identical
74+ # sibling passed.
75+ rm -rf wolfssl
76+ git clone -q --depth 1 --branch '${{ matrix.wolfssl_ref }}' \
77+ https://github.com/wolfSSL/wolfssl.git wolfssl
78+ echo "wolfssl now at ${{ matrix.wolfssl_ref }}: $(git -C wolfssl rev-parse --short HEAD)"
7479
7580 # The job title claims a ref; prove the tree matches it rather than
7681 # trusting that the checkout above did anything.
You can’t perform that action at this time.
0 commit comments