(
hook_type: str,
git_dir: str | None = None,
)
| 45 | |
| 46 | |
| 47 | def _hook_paths( |
| 48 | hook_type: str, |
| 49 | git_dir: str | None = None, |
| 50 | ) -> tuple[str, str]: |
| 51 | git_dir = git_dir if git_dir is not None else git.get_git_common_dir() |
| 52 | pth = os.path.join(git_dir, 'hooks', hook_type) |
| 53 | return pth, f'{pth}.legacy' |
| 54 | |
| 55 | |
| 56 | def is_our_script(filename: str) -> bool: |
no outgoing calls
no test coverage detected