sequencer: fix cleanup with --signoff and -x
commitd74f3e58114d1a8544592fcd5dcdfe0fc4993d27
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Fri, 29 Mar 2019 11:08:42 +0000 (29 11:08 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Apr 2019 04:48:42 +0000 (18 13:48 +0900)
tree3bbcec2e4b738475e520f259695867653bfed0b0
parentffac537e6cbbf934b08745a378932722df287a53
sequencer: fix cleanup with --signoff and -x

Before commit 356ee4659b ("sequencer: try to commit without forking 'git
commit'", 2017-11-24) when --signoff or -x were given on the command
line the commit message was cleaned up with --cleanup=space or
commit.cleanup if it was set. Unfortunately this behavior was lost when
I implemented committing without forking. Fix this and add some tests to
catch future regressions.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c
sequencer.h
t/t3511-cherry-pick-x.sh