internal/rosa/git: shallow clone
All checks were successful
Test / Create distribution (push) Successful in 1m24s
Test / Sandbox (push) Successful in 3m19s
Test / Hakurei (push) Successful in 4m32s
Test / ShareFS (push) Successful in 4m34s
Test / Sandbox (race detector) (push) Successful in 5m58s
Test / Hakurei (race detector) (push) Successful in 7m2s
Test / Flake checks (push) Successful in 1m29s

The .git directory is destroyed anyway, so no point fetching more than the bare minimum.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-04-04 20:14:40 +09:00
parent 3d54d1f176
commit 93ad551054

View File

@@ -105,7 +105,9 @@ func (t Toolchain) NewViaGit(
git \ git \
-c advice.detachedHead=false \ -c advice.detachedHead=false \
clone \ clone \
--depth=1 \
--revision=`+rev+` \ --revision=`+rev+` \
--shallow-submodules \
--recurse-submodules \ --recurse-submodules \
`+url+` \ `+url+` \
/work /work