mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Use shallow clones for submodules
This reduces the amount of git history downloaded from ~67M to ~11M.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user