Skip to content

Commit 9177fa3

Browse files
committed
Use shallow clones for submodules
This reduces the amount of git history downloaded from ~67M to ~11M.
1 parent f875143 commit 9177fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ def update_submodule(self, module, checked_out, recorded_submodules):
990990
run(["git", "submodule", "-q", "sync", module],
991991
cwd=self.rust_root, verbose=self.verbose)
992992

993-
update_args = ["git", "submodule", "update", "--init", "--recursive"]
993+
update_args = ["git", "submodule", "update", "--init", "--recursive", "--depth=1"]
994994
if self.git_version >= distutils.version.LooseVersion("2.11.0"):
995995
update_args.append("--progress")
996996
update_args.append(module)

0 commit comments

Comments
 (0)