X-Git-Url: https://git.cameronkatri.com/cgit.git/blobdiff_plain/e491eaa5df3055dc419d9d3cb75421e8a8c43944..08a2b1b8f812c6d77489467c8ff120979c297bed:/ui-commit.c diff --git a/ui-commit.c b/ui-commit.c index 65b4603..995cb93 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -78,7 +78,7 @@ void cgit_print_commit(char *hex, const char *prefix) html(")\n"); html("tree"); tmp = xstrdup(hex); - cgit_tree_link(oid_to_hex(&commit->tree->object.oid), NULL, NULL, + cgit_tree_link(oid_to_hex(&commit->maybe_tree->object.oid), NULL, NULL, ctx.qry.head, tmp, NULL); if (prefix) { html(" /");