]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
Move cgit_repo into cgit_context
[ps-cgit] / ui-commit.c
index 3b0919ba831a05d6fc0c920e3ebd446e3d186b58..25721ca76a3ad7614e2b46363545c48d4e3314f7 100644 (file)
@@ -194,10 +194,10 @@ void cgit_print_commit(char *hex)
                               sha1_to_hex(p->item->object.sha1), NULL);
                html(")</td></tr>");
        }
-       if (cgit_repo->snapshots) {
+       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, cgit_repo->snapshots);
+                                         hex, ctx.repo->snapshots);
                html("</td></tr>");
        }
        html("</table>\n");