(path)
| 327 | |
| 328 | |
| 329 | def _write_legacy_hook(path): |
| 330 | os.makedirs(os.path.join(path, '.git/hooks'), exist_ok=True) |
| 331 | with open(os.path.join(path, '.git/hooks/pre-commit'), 'w') as f: |
| 332 | f.write('#!/usr/bin/env bash\necho legacy hook\n') |
| 333 | make_executable(f.name) |
| 334 | |
| 335 | |
| 336 | def test_install_existing_hooks_no_overwrite(tempdir_factory, store): |
no test coverage detected