next = commit;
                next_label = msg.label;
  
 -              /*
 -               * Append the commit log message to msgbuf; it starts
 -               * after the tree, parent, author, committer
 -               * information followed by "\n\n".
 -               */
 -              p = strstr(msg.message, "\n\n");
 -              if (p)
 -                      strbuf_addstr(&msgbuf, skip_blank_lines(p + 2));
 +              /* Append the commit log message to msgbuf. */
 +              if (find_commit_subject(msg.message, &p))
 +                      strbuf_addstr(&msgbuf, p);
  
                if (opts->record_origin) {
+                       strbuf_complete_line(&msgbuf);
                        if (!has_conforming_footer(&msgbuf, NULL, 0))
                                strbuf_addch(&msgbuf, '\n');
                        strbuf_addstr(&msgbuf, cherry_picked_prefix);