From 7de23da2b30901e173ce37aa14fbc0671172a837 Mon Sep 17 00:00:00 2001 From: Water Chika Date: Wed, 11 Dec 2024 06:33:12 +0800 Subject: [PATCH] update_deps: Clone with --filter=tree:0 to decrease download size Use git clone --filter=tree:0 to clone deps. This could decrease download size. --- scripts/update_deps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_deps.py b/scripts/update_deps.py index 988d458e3..435bd1533 100755 --- a/scripts/update_deps.py +++ b/scripts/update_deps.py @@ -375,7 +375,7 @@ def Clone(self, retries=10, retry_seconds=60): for retry in range(retries): make_or_exist_dirs(self.repo_dir) try: - command_output(['git', 'clone', self.url, '.'], self.repo_dir) + command_output(['git', 'clone', '--filter=tree:0', self.url, '.'], self.repo_dir) # If we get here, we didn't raise an error return except RuntimeError as e: