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>
This commit is contained in:

committed by
Junio C Hamano

parent
789b3effec
commit
b92ff6e814
@ -230,7 +230,7 @@ chmod +x reword-editor
|
||||
REWORD_EDITOR="$(pwd)/reword-editor"
|
||||
export REWORD_EDITOR
|
||||
|
||||
test_expect_failure 'hook is called for reword during `rebase -i`' '
|
||||
test_expect_success 'hook is called for reword during `rebase -i`' '
|
||||
|
||||
GIT_SEQUENCE_EDITOR="\"$REWORD_EDITOR\"" git rebase -i HEAD^ &&
|
||||
commit_msg_is "new message"
|
||||
|
Reference in New Issue
Block a user