Fix #238 : pre-commit autoupdate fails with local hooks

This commit is contained in:
Lucas Cimon 2015-06-02 21:43:30 +02:00
parent 1c46446427
commit b575cb510c
5 changed files with 30 additions and 14 deletions

View file

@ -125,9 +125,8 @@ class Repository(object):
class LocalRepository(Repository):
def __init__(self, repo_config, repo_path_getter=None):
repo_path_getter = None
super(LocalRepository, self).__init__(repo_config, repo_path_getter)
def __init__(self, repo_config):
super(LocalRepository, self).__init__(repo_config, None)
@cached_property
def hooks(self):