The repository root for a `hook-*` entry point, or `None` when Git ran the dispatcher inside a linked worktree and the hook passes through.
(hook_name: &str)
| 765 | /// The repository root for a `hook-*` entry point, or `None` when Git ran |
| 766 | /// the dispatcher inside a linked worktree and the hook passes through. |
| 767 | fn hook_root(hook_name: &str) -> CliResult<Option<PathBuf>> { |
| 768 | if linked_worktree::hook_passes_through(hook_name) { |
| 769 | return Ok(None); |
| 770 | } |
| 771 | find_repository_root().map(Some) |
| 772 | } |
| 773 | |
| 774 | fn reconcile() -> CliResult<()> { |
| 775 | let root = find_repository_root()?; |
no test coverage detected