]> quire.kejadlen.dev Git - quire.git/commit
Canonicalize GIT_DIR in hook before resolving repo
authorAlpha Chen <alpha@kejadlen.dev>
Mon, 27 Apr 2026 16:36:07 +0000 (16:36 +0000)
committerAlpha Chen <alpha@kejadlen.dev>
Mon, 27 Apr 2026 16:46:15 +0000 (09:46 -0700)
commit326769ffc36b032ad39dcc2fb84de724a606601f
tree68c66aa9567d6305ff5ad674f45e861613bf9c35
parent3e8302150959aca54505b3fce71b974cd2125c7b
Canonicalize GIT_DIR in hook before resolving repo

git sets GIT_DIR to "." when invoking hooks via hook.<name>.command.
The repo resolver strips a prefix to find the repo name, so a relative
path fails the prefix check. Canonicalize in the hook so the resolver
gets an absolute path.

Assisted-by: GLM-5.1 via pi
src/bin/quire/commands/hook.rs