Author: Lars Hjemli <hjemli@gmail.com>
ui-shared: exploit snapshot dwimmery in cgit_print_snapshot_links Since we know that ui-snapshot.c is able to extract the revision from the filename, there's no longer necessary to specify the revision with a 'id' querystring argument. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
ui-shared.c | 3 +--
diff --git a/ui-shared.c b/ui-shared.c index 224e5f3b2f3da88d89a0ea3034b9182cf7775cd7..c4a506e390c9b5b60d1f1ace8a3fa4f13990e4cb 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -707,8 +707,7 @@ if (!(snapshots & f->bit)) continue; filename = fmt("%s-%s%s", cgit_repobasename(repo), hex, f->suffix); - cgit_snapshot_link(filename, NULL, NULL, (char *)head, - (char *)hex, filename); + cgit_snapshot_link(filename, NULL, NULL, NULL, NULL, filename); html("<br/>"); } }