]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
Do not unnecessarily strdup() environment variables
[ps-cgit] / ui-commit.c
index 078328529b54fd15f7e1f6eacc013c9a97cfcb53..5a552a19cfa381e2b7cfb685d39de9cc46c08813 100644 (file)
@@ -36,7 +36,8 @@ void cgit_print_commit(char *hex, const char *prefix)
        }
        info = cgit_parse_commit(commit);
 
        }
        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);
 
 
        load_ref_decorations(DECORATE_FULL_REFS);