about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-10-10 22:34:10 -0500
committerJoshua Nelson <jyn514@gmail.com>2021-10-10 22:37:37 -0500
commit9177fa3dd23945a8add858cfce893bb25194e0fe (patch)
tree237ef2981964d01856cc604d4d016b7d64de1517 /src/bootstrap
parentf8751436ffce35cd1b7291b03b394166b77ff0da (diff)
downloadrust-9177fa3dd23945a8add858cfce893bb25194e0fe.tar.gz
rust-9177fa3dd23945a8add858cfce893bb25194e0fe.zip
Use shallow clones for submodules
This reduces the amount of git history downloaded from ~67M to ~11M.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/bootstrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index 05d7b0f611f..9d64a254f61 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -990,7 +990,7 @@ class RustBuild(object):
         run(["git", "submodule", "-q", "sync", module],
             cwd=self.rust_root, verbose=self.verbose)
 
-        update_args = ["git", "submodule", "update", "--init", "--recursive"]
+        update_args = ["git", "submodule", "update", "--init", "--recursive", "--depth=1"]
         if self.git_version >= distutils.version.LooseVersion("2.11.0"):
             update_args.append("--progress")
         update_args.append(module)