mirror of
https://git.zx2c4.com/cgit
synced 2025-09-01 14:55:10 +00:00
Move cgit_repo into cgit_context
This removes the global variable which is used to keep track of the currently selected repository, and adds a new variable in the cgit_context structure. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user