]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sequencer: allow the commit-msg hooks to run during a `reword`
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 23 Mar 2017 16:07:17 +0000 (17:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Mar 2017 20:55:13 +0000 (13:55 -0700)
commitb92ff6e81429c6a2636b4d6d26ab9ce5d4890fe8
treecd8f3b4c98c4a8609eeebb7639688aceb7be8735
parent789b3effec89e6f336726de109eb8be9dc60b7a5
sequencer: allow the commit-msg hooks to run during a `reword`

The `reword` command used to call `git commit` in a manner that asks for
the prepare-commit-msg and commit-msg hooks to do their thing.

Converting that part of the interactive rebase to C code introduced the
regression where those hooks were no longer run.

Let's fix this.

Note: the flag is called `VERIFY_MSG` instead of the more intuitive
`RUN_COMMIT_MSG_HOOKS` to indicate that the flag suppresses the
`--no-verify` flag (which may do other things in the future in addition
to suppressing the commit message hooks, too).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c
t/t7504-commit-msg-hook.sh