Skip to content

Commit

Permalink
Use shallow clones for submodules
Browse files Browse the repository at this point in the history
This reduces the amount of git history downloaded from ~67M to ~11M.
  • Loading branch information
jyn514 committed Oct 11, 2021
1 parent f875143 commit 9177fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/bootstrap.py
Expand Up @@ -990,7 +990,7 @@ def update_submodule(self, module, checked_out, recorded_submodules):
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)
Expand Down

0 comments on commit 9177fa3

Please sign in to comment.