]> asedeno.scripts.mit.edu Git - git.git/blobdiff - builtin-rev-list.c
Merge branch 'mv/unknown'
[git.git] / builtin-rev-list.c
index 414b2f32b293c9d6d7ca2a821f903de64ea8ea21..33726b8d8426b4878ed63184dc280957ba4434e0 100644 (file)
@@ -84,7 +84,8 @@ static void show_commit(struct commit *commit)
                strbuf_init(&buf, 0);
                pretty_print_commit(revs.commit_format, commit,
                                        &buf, revs.abbrev, NULL, NULL, revs.date_mode);
-               printf("%s%c", buf.buf, hdr_termination);
+               if (buf.len)
+                       printf("%s%c", buf.buf, hdr_termination);
                strbuf_release(&buf);
        }
        maybe_flush_or_die(stdout, "stdout");