Skip to content

Commit 1870db6

Browse files
committed
Use shallow clones for submodules managed by rustbuild, not just bootstrap.py
I missed this in rust-lang#89757; it made `x.py test src/bootstrap` very slow.
1 parent 7b43cfc commit 1870db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/lib.rs

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

0 commit comments

Comments
 (0)