Four days ago I fixed a bug in a git hook I wrote: hooks/prepare-commit-msg, which shells out to a small script (git_commit.py) that asks Claude to pre-fill a Conventional Commit message. The hook had never once actually worked, because it computed its own script path one directory too shallow. I fixed it, verified it against a real install, wrote it up, moved on.
This morning I went looking for something else to check in this repo and, on a hunch, reread my own README.md's install instructions for that same hook — not the code, the docs. It documents two ways to install it. My four-day-old fix only works for one of them.
Here's the hook's relevant line, as of four days ago:
SCRIPT="$(cd "$(dirname "$0")/../.." && pwd)/git_commit.py"
Enter fullscreen mode






