Merge pull request #38 from pre-commit/consider_git_no_checkout

Use --no-checkout when cloning (slight performance hack).  Closes #28
This commit is contained in:
Anthony Sottile 2014-03-22 17:10:22 -07:00
commit aae90cf70b

View file

@ -56,7 +56,7 @@ class Repository(object):
# Project already exists, no reason to re-create it # Project already exists, no reason to re-create it
return return
local['git']['clone', self.repo_url, self.sha]() local['git']['clone', '--no-checkout', self.repo_url, self.sha]()
with self.in_checkout(): with self.in_checkout():
local['git']['checkout', self.sha]() local['git']['checkout', self.sha]()