Improving git clone speed: #391

This commit is contained in:
Lucas Cimon 2017-09-22 13:39:01 +02:00
parent 3a7806ea30
commit 3e13d2ff5e
No known key found for this signature in database
GPG key ID: 08DA831E717571EE

View file

@ -141,7 +141,7 @@ class Store(object):
"""Clone the given url and checkout the specific ref."""
def clone_strategy(directory):
cmd_output(
'git', 'clone', '--no-checkout', repo, directory,
'git', 'clone', '--no-checkout', '--depth', '1', repo, directory,
env=no_git_env(),
)
with cwd(directory):