X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/2efee09abe28ecd2719201da6cd9915f14d93a56..1b49de3c2c52e29c78f870826b6334abdadc0295:/ui-commit.c diff --git a/ui-commit.c b/ui-commit.c index 73fa104..3618800 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -128,6 +128,7 @@ void cgit_print_commit(const char *hex) struct commit_list *p; unsigned char sha1[20]; char *query; + char *filename; if (get_sha1(hex, sha1)) { cgit_print_error(fmt("Bad object id: %s", hex)); @@ -168,6 +169,14 @@ void cgit_print_commit(const char *hex) htmlf("'>%s\n", sha1_to_hex(p->item->object.sha1)); } + if (cgit_repo->snapshots) { + htmlf("download%s", filename); + } + html("\n"); html("
"); html_txt(info->subject);