mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Resolves cwd problem
This commit is contained in:
parent
6f0d566199
commit
216b5c6ab1
13 changed files with 212 additions and 107 deletions
|
|
@ -47,5 +47,5 @@ class Runner(object):
|
|||
return os.path.join(self.git_root, '.git/hooks/pre-commit')
|
||||
|
||||
@cached_property
|
||||
def workspace_runner(self):
|
||||
return PrefixedCommandRunner(C.HOOKS_WORKSPACE)
|
||||
def cmd_runner(self):
|
||||
return PrefixedCommandRunner(self.hooks_workspace_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue