about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoshua Nelson <jnelson@cloudflare.com>2022-02-06 19:37:35 -0600
committerJoshua Nelson <jnelson@cloudflare.com>2022-02-06 19:37:50 -0600
commit1870db6e4176732275b8be728863f018561b533b (patch)
treeb94cd7b6d15230244a338c952f8a830e1983a2ed
parent7b43cfc9b25ac4a906bd56d32d3111085dd9e6a1 (diff)
downloadrust-1870db6e4176732275b8be728863f018561b533b.tar.gz
rust-1870db6e4176732275b8be728863f018561b533b.zip
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");
             }