mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-09-25 05:55:20 -04:00
Clone git repository with a depth of one.
This avoid downloading all the history. With recent git, a `git fetch --unshallow` allow a user to get all the history if needed.
This commit is contained in:
parent
6d13ee8a4e
commit
0199092f62
@ -134,7 +134,7 @@ class GitClone(Source):
|
||||
context.force_native_build = True
|
||||
if os.path.exists(self.git_path):
|
||||
raise SkipCommand()
|
||||
command = "git clone {} {}".format(self.git_remote, self.git_dir)
|
||||
command = "git clone --depth=1 {} {}".format(self.git_remote, self.git_dir)
|
||||
self.buildEnv.run_command(command, self.buildEnv.source_dir, context)
|
||||
|
||||
def _git_update(self, context):
|
||||
|
Loading…
x
Reference in New Issue
Block a user