Skip to content

Commit

Permalink
Use shallow clones for submodules managed by rustbuild, not just boot…
Browse files Browse the repository at this point in the history
…strap.py

I missed this in rust-lang#89757; it made
`x.py test src/bootstrap` very slow.
  • Loading branch information
jyn514 committed Feb 7, 2022
1 parent 7b43cfc commit 1870db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ impl Build {
// Try passing `--progress` to start, then run git again without if that fails.
let update = |progress: bool| {
let mut git = Command::new("git");
git.args(&["submodule", "update", "--init", "--recursive"]);
git.args(&["submodule", "update", "--init", "--recursive", "--depth=1"]);
if progress {
git.arg("--progress");
}
Expand Down

0 comments on commit 1870db6

Please sign in to comment.