about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2022-02-07 14:08:37 +0000
committerGitHub <noreply@github.com>2022-02-07 14:08:37 +0000
commit82fe6ed42564e008dd2383cf34323fcacb3a18aa (patch)
tree3d0b9172ab45744c01466b321f4a5a57a19fd943
parentf4377a8932252a2f019e3f39b688dba075174b9f (diff)
parent1870db6e4176732275b8be728863f018561b533b (diff)
downloadrust-82fe6ed42564e008dd2383cf34323fcacb3a18aa.tar.gz
rust-82fe6ed42564e008dd2383cf34323fcacb3a18aa.zip
Rollup merge of #93722 - jyn514:less-submodule-cloning, r=Mark-Simulacrum
Use shallow clones for submodules managed by rustbuild, not just bootstrap.py

I missed this in https://github.com/rust-lang/rust/pull/89757; it made
`x.py test src/bootstrap` very slow.
-rw-r--r--src/bootstrap/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index e5f84d417bf..1a42d25c352 100644
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -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");
             }