from pathlib import Path


def get_hook_path(repository, name: str) -> Path:
    """Return path to the given named hook in the given repository."""
    return repository.path / ".git" / "hooks" / name