X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/b228d4ff82a65fdcd4a7364759fe36a0bdda5978..d1f3bbe9d22029f45a77bb938c176ccc0c827d46:/ui-commit.c diff --git a/ui-commit.c b/ui-commit.c index 3b0919b..25721ca 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -194,10 +194,10 @@ void cgit_print_commit(char *hex) sha1_to_hex(p->item->object.sha1), NULL); html(")"); } - if (cgit_repo->snapshots) { + if (ctx.repo->snapshots) { html("download"); cgit_print_snapshot_links(ctx.qry.repo, ctx.qry.head, - hex, cgit_repo->snapshots); + hex, ctx.repo->snapshots); html(""); } html("\n");