Skip to content

Commit ad539e0

Browse files
authored
Rollup merge of #93722 - jyn514:less-submodule-cloning, r=Mark-Simulacrum
Use shallow clones for submodules managed by rustbuild, not just bootstrap.py I missed this in #89757; it made `x.py test src/bootstrap` very slow.
2 parents 4ba3120 + 1870db6 commit ad539e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ impl Build {
526526
// Try passing `--progress` to start, then run git again without if that fails.
527527
let update = |progress: bool| {
528528
let mut git = Command::new("git");
529-
git.args(&["submodule", "update", "--init", "--recursive"]);
529+
git.args(&["submodule", "update", "--init", "--recursive", "--depth=1"]);
530530
if progress {
531531
git.arg("--progress");
532532
}

0 commit comments

Comments
 (0)