X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/bd1b281478c8d8ab45f723ac5818d58da4a64dd1..c4fbb99cee30fa295e240b429b2dc7e8ad83d535:/ui-commit.c
diff --git a/ui-commit.c b/ui-commit.c
index ea17461..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(" /");
@@ -110,7 +110,7 @@ void cgit_print_commit(char *hex, const char *prefix)
}
if (ctx.repo->snapshots) {
html(" |
|---|
| download | ");
- cgit_print_snapshot_links(ctx.repo, ctx.qry.head, hex);
+ cgit_print_snapshot_links(ctx.repo, hex, " ");
html(" |
");
}
html("\n");