mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Use --no-checkout when cloning (slight performance hack). Closes #28
This commit is contained in:
parent
64745fb0b4
commit
c3436ebfda
1 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ class Repository(object):
|
|||
# Project already exists, no reason to re-create it
|
||||
return
|
||||
|
||||
local['git']['clone', self.repo_url, self.sha]()
|
||||
local['git']['clone', '--no-checkout', self.repo_url, self.sha]()
|
||||
with self.in_checkout():
|
||||
local['git']['checkout', self.sha]()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue