Commit Graph
2 Commits
Author SHA1 Message Date
sneak 4d0c20dcb1 script/install-precommit: work where .git is a file (closes #129)
check / check (push) Successful in 1m44s
The script wrote the hook to .git/hooks, which fails when .git is a
file rather than a directory, as in a clone made with
--separate-git-dir. It now asks git for the repository's own git
directory with `git rev-parse --git-common-dir`, creates its hooks
directory if missing, and writes the hook there. In an ordinary clone
that is .git/hooks, so nothing moves. git's core.hooksPath setting is
not followed, so the script never writes outside the repository; where
that setting is in force, git does not run the installed hook, as
before.

Model: opus-5-5
2026-10-01 18:27:18 +00:00
sneak b72c436fda scripts-to-rule-them-all (#92)
check / check (push) Successful in 4s
Reviewed-on: #92
Co-authored-by: sneak <sneak@sneak.berlin>
Co-committed-by: sneak <sneak@sneak.berlin>
2026-07-07 02:14:32 +02:00