Skip to content

Commit

Permalink
update_deps: Clone with --filter=tree:0 to decrease download size
Browse files Browse the repository at this point in the history
Use git clone --filter=tree:0 to clone deps.
This could decrease download size.
  • Loading branch information
water-chika committed Dec 10, 2024
1 parent 377016e commit 7de23da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7de23da

Please sign in to comment.