X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/dc3c9b5bc48779f37f2fbcbadce8865eaf4a360e..7858a309d7671109950ec940f893c2d112d36b99:/ui-commit.c
diff --git a/ui-commit.c b/ui-commit.c
index 50e9e11..4ac8955 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -75,8 +75,8 @@ void print_fileinfo(struct fileinfo *info)
html("]");
}
htmlf("
", class);
- cgit_tree_link(info->new_path, NULL, NULL, cgit_query_head, curr_rev,
- info->new_path);
+ cgit_diff_link(info->new_path, NULL, NULL, cgit_query_head, curr_rev,
+ NULL, info->new_path);
if (info->status == DIFF_STATUS_COPIED || info->status == DIFF_STATUS_RENAMED)
htmlf(" (%s from %s)",
info->status == DIFF_STATUS_COPIED ? "copied" : "renamed",
@@ -196,7 +196,8 @@ void cgit_print_commit(char *hex)
}
if (cgit_repo->snapshots) {
html(" | | download | ");
- cgit_print_snapshot_links(cgit_query_repo,hex,cgit_repo->snapshots);
+ cgit_print_snapshot_links(cgit_query_repo, cgit_query_head,
+ hex, cgit_repo->snapshots);
html(" |
");
}
html("\n");