mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-16 18:41:46 +04:00
Improving git clone speed: #391
This commit is contained in:
parent
3a7806ea30
commit
3e13d2ff5e
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ class Store(object):
|
||||||
"""Clone the given url and checkout the specific ref."""
|
"""Clone the given url and checkout the specific ref."""
|
||||||
def clone_strategy(directory):
|
def clone_strategy(directory):
|
||||||
cmd_output(
|
cmd_output(
|
||||||
'git', 'clone', '--no-checkout', repo, directory,
|
'git', 'clone', '--no-checkout', '--depth', '1', repo, directory,
|
||||||
env=no_git_env(),
|
env=no_git_env(),
|
||||||
)
|
)
|
||||||
with cwd(directory):
|
with cwd(directory):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue