I have a pre-commit hook in git that returns nonzero on some "fatal" QA checks.
git commit on the command line, git bails out. However, when trying the very same commit in Magit, Magit continues on presenting the commit message buffer.
I would like Magit to bail like git does.
I don't have anything related to Magit in my init file beyond
Magit 20201110.1643, Git 2.26.2, Emacs 27.1, gnu/linux
Magit process buffer (
1 git … commit --signoff pre-commit running in /home/titan/repos/gentoo Running repoman for: app-office/gnucash digest.unused 3 /home/titan/repos/gentoo/app-office/gnucash::gnucash-3.8b.tar.bz2 /home/titan/repos/gentoo/app-office/gnucash::gnucash-4.0.tar.bz2 /home/titan/repos/gentoo/app-office/gnucash::gnucash-4.1.tar.bz2 Non-Fatal QA errors found pre-commit done in /home/titan/repos/gentoo hint: Waiting for your editor to close the file... Waiting for Emacs...
I've programmed the script to consider unused digest items to be an error. So, the script returns 1.