diff --git a/sequencer.c b/sequencer.c index c4f4b7d571..e286a6ec13 100644 --- a/sequencer.c +++ b/sequencer.c @@ -568,10 +568,8 @@ static int do_pick_commit(struct commit *commit, struct replay_opts *opts) * information followed by "\n\n". */ p = strstr(msg.message, "\n\n"); - if (p) { - p += 2; - strbuf_addstr(&msgbuf, p); - } + if (p) + strbuf_addstr(&msgbuf, skip_blank_lines(p + 2)); if (opts->record_origin) { if (!has_conforming_footer(&msgbuf, NULL, 0))