]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/lib.rs
Rollup merge of #93862 - Mark-Simulacrum:apple-split, r=pietroalbini
[rust.git] / src / bootstrap / lib.rs
index e5f84d417bf0b24f558889ec45cf5b0746677f7a..1a42d25c352d3eaa041807697e35b3c22db88242 100644 (file)
@@ -527,7 +527,7 @@ fn dir_is_empty(dir: &Path) -> bool {
         // 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");
             }