]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-commit.c
git: update to v2.29.0
[cgit.git] / ui-commit.c
index 9a47b54c560544cf32e0b797614e04c6606eff80..783211ff75deb49aff982e25711efc062f8885c1 100644 (file)
@@ -78,7 +78,7 @@ void cgit_print_commit(char *hex, const char *prefix)
        html(")</td></tr>\n");
        html("<tr><th>tree</th><td colspan='2' class='sha1'>");
        tmp = xstrdup(hex);
-       cgit_tree_link(oid_to_hex(&commit->maybe_tree->object.oid), NULL, NULL,
+       cgit_tree_link(oid_to_hex(get_commit_tree_oid(commit)), NULL, NULL,
                       ctx.qry.head, tmp, NULL);
        if (prefix) {
                html(" /");