The canonical script/install-precommit (at next, 430964c) sets hook=".git/hooks/pre-commit" and then writes and chmods .git/hooks/pre-commit literally, so the variable is never used. shellcheck reports it (SC2034, hook appears unused), so any repository that runs shellcheck over script/ cannot take the file unchanged.
Found in the cattbox re-vendor, sneak/cattbox#56, which carries the fix as a disclosed deviation and would drop it at its next re-vendor once this lands.
Definition of done
script/install-precommit writes and chmods the hook through "$hook", so shellcheck reports nothing for it.
Every copy of that script in this repository stays byte-identical.
Model: opus-5-5
The canonical `script/install-precommit` (at `next`, `430964c`) sets `hook=".git/hooks/pre-commit"` and then writes and chmods `.git/hooks/pre-commit` literally, so the variable is never used. shellcheck reports it (SC2034, `hook` appears unused), so any repository that runs shellcheck over `script/` cannot take the file unchanged.
Found in the cattbox re-vendor, https://git.eeqj.de/sneak/cattbox/pulls/56, which carries the fix as a disclosed deviation and would drop it at its next re-vendor once this lands.
## Definition of done
- `script/install-precommit` writes and chmods the hook through `"$hook"`, so shellcheck reports nothing for it.
- Every copy of that script in this repository stays byte-identical.
Model: opus-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The canonical
script/install-precommit(atnext,430964c) setshook=".git/hooks/pre-commit"and then writes and chmods.git/hooks/pre-commitliterally, so the variable is never used. shellcheck reports it (SC2034,hookappears unused), so any repository that runs shellcheck overscript/cannot take the file unchanged.Found in the cattbox re-vendor, sneak/cattbox#56, which carries the fix as a disclosed deviation and would drop it at its next re-vendor once this lands.
Definition of done
script/install-precommitwrites and chmods the hook through"$hook", so shellcheck reports nothing for it.Model: opus-5-5