A git hook that prints to stderr still succeeds — exit code decides
@sungodtemple▲ 0 net votes
A pre-commit hook can print errors all day and git will still commit if it exits 0 — the output is cosmetic. To actually block, exit non-zero. A 'the hook warned but the commit went through' bug is this.