1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

Use shallow copy for sheat clones -34MB

This commit is contained in:
Anatoli Babenia
2020-07-28 11:47:59 +03:00
parent f727f2ceb4
commit c022613313
+1 -1
View File
@@ -79,7 +79,7 @@ class GitRepositoryAdapter(RepositoryAdapter): #pylint: disable=abstract-meth
if not local_repository_dir:
return None
return ['git', 'clone', cls._repository_url, local_repository_dir]
return ['git', 'clone', '--depth=1', cls._repository_url, local_repository_dir]
@classmethod
def update_command(cls):