Use --no-checkout when cloning (slight performance hack). Closes #28

This commit is contained in:
Anthony Sottile
2014-03-22 17:03:58 -07:00
parent 64745fb0b4
commit c3436ebfda

View File

@@ -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]()
@@ -69,4 +69,4 @@ class Repository(object):
def run_hook(self, hook_id, file_args):
with self.in_checkout():
hook = self.hooks[hook_id]
return languages[hook['language']].run_hook(hook, file_args)
return languages[hook['language']].run_hook(hook, file_args)