Skip to content

Commit

Permalink
Rollup merge of #93722 - jyn514:less-submodule-cloning, r=Mark-Simula…
Browse files Browse the repository at this point in the history
…crum

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.
  • Loading branch information
m-ou-se committed Feb 7, 2022
2 parents f4377a8 + 1870db6 commit 82fe6ed
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 82fe6ed

Please sign in to comment.