]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
cgit.mk: fix dependency handling
[ps-cgit] / ui-commit.c
index 74f37c8a0ff4222c13e410635fc0fac3d0ba9049..5a552a19cfa381e2b7cfb685d39de9cc46c08813 100644 (file)
@@ -36,7 +36,8 @@ void cgit_print_commit(char *hex, const char *prefix)
        }
        info = cgit_parse_commit(commit);
 
-       format_note(NULL, sha1, &notes, PAGE_ENCODING, 0);
+       init_display_notes(NULL);
+       format_display_notes(sha1, &notes, PAGE_ENCODING, 0);
 
        load_ref_decorations(DECORATE_FULL_REFS);
 
@@ -74,6 +75,7 @@ void cgit_print_commit(char *hex, const char *prefix)
                html(" /");
                cgit_tree_link(prefix, NULL, NULL, ctx.qry.head, tmp, prefix);
        }
+       free(tmp);
        html("</td></tr>\n");
        for (p = commit->parents; p; p = p->next) {
                parent = lookup_commit_reference(p->item->object.sha1);