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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user