hook paths are only computed in install_uninstall

This commit is contained in:
Anthony Sottile 2018-07-05 12:49:01 -07:00
parent d04823e8e3
commit bffa58753d
3 changed files with 10 additions and 8 deletions

View file

@ -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(