Merge branch 'jc/maint-obsd46' into maint
[gitweb.git] / builtin-branch.c
index c77f6328861a929d1564f131d38e91155bb9c858..c87e63b02dd3bb0e12e5bf14aec22a0f219867b0 100644 (file)
@@ -389,8 +389,9 @@ static void print_ref_item(struct ref_item *item, int maxwidth, int verbose,
 
                commit = item->commit;
                if (commit && !parse_commit(commit)) {
+                       struct pretty_print_context ctx = {0};
                        pretty_print_commit(CMIT_FMT_ONELINE, commit,
-                                           &subject, 0, NULL, NULL, 0, 0);
+                                           &subject, &ctx);
                        sub = subject.buf;
                }