cherry-pick: do not give irrelevant advice when cherry-pick punted
[gitweb.git] / builtin / branch.c
index 9cca1b9afc20caf6333d0269386249f41fa8746f..d6ab93bfbb369965e76e384e6984a29b667cdfbe 100644 (file)
@@ -399,9 +399,7 @@ static void add_verbose_info(struct strbuf *out, struct ref_item *item,
        struct commit *commit = item->commit;
 
        if (commit && !parse_commit(commit)) {
-               struct pretty_print_context ctx = {0};
-               pretty_print_commit(CMIT_FMT_ONELINE, commit,
-                                   &subject, &ctx);
+               pp_commit_easy(CMIT_FMT_ONELINE, commit, &subject);
                sub = subject.buf;
        }