diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-08-03 17:52:44 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-08-03 17:52:44 +0200 |
commit | 42f8840323a219d3eca59a7a2a388c3a28eeb8fb (patch) | |
tree | ec799ab66ed4119b68268192ea8fbe62a96b51aa /ui-commit.c | |
parent | 343a8b8ee33f9a181e662fc0e3a3979dd9b52dd4 (diff) | |
parent | 824138e59194acaf5efe53690d4ef6eaf38e1549 (diff) | |
download | cgit-42f8840323a219d3eca59a7a2a388c3a28eeb8fb.tar.gz cgit-42f8840323a219d3eca59a7a2a388c3a28eeb8fb.tar.xz |
Merge branch 'master' of https://git.zx2c4.com/cgit into local
Diffstat (limited to 'ui-commit.c')
-rw-r--r-- | ui-commit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui-commit.c b/ui-commit.c index abf58f6..995cb93 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -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->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,8 +110,7 @@ void cgit_print_commit(char *hex, const char *prefix) } if (ctx.repo->snapshots) { html("<tr><th>download</th><td colspan='2' class='sha1'>"); - cgit_print_snapshot_links(ctx.qry.repo, ctx.qry.head, - hex, ctx.repo->snapshots); + cgit_print_snapshot_links(ctx.repo, hex, "<br/>"); html("</td></tr>"); } html("</table>\n"); |