]> git.ekhem.eu.org Git - guix.git/commit
[ai] Fix block-worktrees responses and path checks.
authorJakub Czajka <jakub@ekhem.eu.org>
Sun, 22 Nov 2026 21:03:32 +0000 (21:03 +0000)
committerJakub Czajka <jakub@ekhem.eu.org>
Sun, 22 Nov 2026 21:03:32 +0000 (21:03 +0000)
commit4b3f88098fe6c4dfdc6db4a909ca846786ed0f1d
treeb7256e3652e88df10dbbd543726838e4352c1097
parentb5aa764c3d21fb0849b2c0102f46400c93fba5ee
[ai] Fix block-worktrees responses and path checks.

Resolve git from PATH and return early outside a worktree, so a
missing worktree cannot block unrelated tools.  Derive the project
root from git-common-dir, add hookEventName to hook responses, use
updatedInput for ExitWorktree, and match project-root writes only at
a path boundary.
.claude/hooks/block-worktrees