Skip to content

Commit

Permalink
Rollup merge of rust-lang#93722 - jyn514:less-submodule-cloning, r=Ma…
Browse files Browse the repository at this point in the history
…rk-Simulacrum

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.
  • Loading branch information
m-ou-se authored Feb 7, 2022
2 parents 4ba3120 + 1870db6 commit ad539e0
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 @@ -526,7 +526,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 ad539e0

Please sign in to comment.