t7504: document regression: reword no longer calls commit-msg

The `reword` command of an interactive rebase used to call the commit-msg hooks, but that regressed when we switched to the rebase--helper backed by the sequencer. Noticed by Sebastian Schuberth. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Mar 22, 2017 at 16:01 UTC cb7fb9ed4277f3e1e9203777d4de0805cf29f873
1 file changed +17
t/t7504-commit-msg-hook.sh
+17
@@ -220,4 +220,21 @@ test_expect_success "hook doesn't edit commit message (editor)" '
220
221 '
222
223 +# set up fake editor to replace `pick` by `reword`
224 +cat > reword-editor <<'EOF'
225 +#!/bin/sh
226 +mv "$1" "$1".bup &&
227 +sed 's/^pick/reword/' <"$1".bup >"$1"
228 +EOF
229 +chmod +x reword-editor
230 +REWORD_EDITOR="$(pwd)/reword-editor"
231 +export REWORD_EDITOR
232 +
233 +test_expect_failure 'hook is called for reword during `rebase -i`' '
234 +
235 + GIT_SEQUENCE_EDITOR="\"$REWORD_EDITOR\"" git rebase -i HEAD^ &&
236 + commit_msg_is "new message"
237 +
238 +'
239 +
240 test_done