mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Remove stateful Runner
This commit is contained in:
parent
1d40cc2104
commit
fe409f1a43
17 changed files with 209 additions and 315 deletions
|
|
@ -30,7 +30,7 @@ def get_root():
|
|||
)
|
||||
|
||||
|
||||
def get_git_dir(git_root):
|
||||
def get_git_dir(git_root='.'):
|
||||
opts = ('--git-common-dir', '--git-dir')
|
||||
_, out, _ = cmd_output('git', 'rev-parse', *opts, cwd=git_root)
|
||||
for line, opt in zip(out.splitlines(), opts):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue