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
matthiaskrgr authored Feb 7, 2022
2 parents ee1740b + 1870db6 commit 530eba4
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 530eba4

Please sign in to comment.