mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-16 21:29:25 -06:00
Resolves cwd problem
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user