X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/e491eaa5df3055dc419d9d3cb75421e8a8c43944..82856923bffaac3ac88a90a797ddb33dcee8635a:/ui-commit.c?ds=inline 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(" /");