mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
hook paths are only computed in install_uninstall
This commit is contained in:
parent
d04823e8e3
commit
bffa58753d
3 changed files with 10 additions and 8 deletions
|
|
@ -640,7 +640,7 @@ def test_commit_msg_integration_passing(
|
|||
def test_commit_msg_legacy(commit_msg_repo, tempdir_factory, store):
|
||||
runner = Runner(commit_msg_repo, C.CONFIG_FILE)
|
||||
|
||||
hook_path = runner.get_hook_path('commit-msg')
|
||||
hook_path = os.path.join(commit_msg_repo, '.git/hooks/commit-msg')
|
||||
mkdirp(os.path.dirname(hook_path))
|
||||
with io.open(hook_path, 'w') as hook_file:
|
||||
hook_file.write(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue