Commit cb49492
Have actions/checkout clone submodules recursively in test workflows
Set `submodules: recursive` on `actions/checkout` in the three workflows
that run the test suite (cygwin-test, alpine-test, pythonpackage) so
that submodule working trees are fetched in parallel by the action,
not sequentially in `init-tests-after-clone.sh`. The script's
`git submodule update --init --recursive` line becomes a no-op
verification rather than the only mechanism for fetching submodules,
and the script's other responsibilities (master branch setup, reflog
history, version tags) are unaffected.
The codeql and lint workflows do not run the test suite and do not
need submodules; they are unchanged.
This does not eliminate the dubious-ownership issue covered by later
commits in this chain. `actions/checkout`'s `set-safe-directory: true`
default adds only the main repository path to safe.directory, and on
Cygwin that addition lands in the Windows-side global git config, not
the Cygwin-side one (since `actions/checkout` runs the Node action
against the Windows git binary, while Cygwin git uses its own global
config under the Cygwin user's home). So the cygwin-test workflow
still needs the explicit `safe.directory` entries for the gitdb and
smmap working trees that subsequent commits add.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c7648c0 commit cb49492
3 files changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
0 commit comments