rebase --root: fix amending root commit messages
commit76fda6ebbc721e39ed70625206ba1dab5a9c1340
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 16 Jun 2018 19:00:38 +0000 (16 21:00 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Jun 2018 16:36:58 +0000 (18 09:36 -0700)
tree1fcc61994bdafbbde4fd18d35ee5d5db782183a4
parent3a36ca08818c0ca858de56ad49857b97a509ef2a
rebase --root: fix amending root commit messages

The code path that triggered that "BUG" really does not want to run
without an explicit commit message. In the case where we want to amend a
commit message, we have an *implicit* commit message, though: the one of
the commit to amend. Therefore, this code path should not even be
entered.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c
t/t3404-rebase-interactive.sh