mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix #238 : pre-commit autoupdate fails with local hooks
This commit is contained in:
parent
1c46446427
commit
b575cb510c
5 changed files with 30 additions and 14 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue