X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/ab2ab95f09994560f62fd631f07d3b6e3577aa6e..1b49de3c2c52e29c78f870826b6334abdadc0295:/ui-commit.c diff --git a/ui-commit.c b/ui-commit.c index de3f2cf..3618800 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -169,11 +169,13 @@ void cgit_print_commit(const char *hex) htmlf("'>%s\n", sha1_to_hex(p->item->object.sha1)); } - htmlf("download%s", filename); + if (cgit_repo->snapshots) { + htmlf("download%s", filename); + } html("\n"); html("
");