]> granicus.if.org Git - cgit/commitdiff
ui-shared: exploit snapshot dwimmery in cgit_print_snapshot_links
authorLars Hjemli <hjemli@gmail.com>
Mon, 1 Dec 2008 20:50:19 +0000 (21:50 +0100)
committerLars Hjemli <hjemli@gmail.com>
Mon, 1 Dec 2008 20:50:19 +0000 (21:50 +0100)
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

index 224e5f3b2f3da88d89a0ea3034b9182cf7775cd7..c4a506e390c9b5b60d1f1ace8a3fa4f13990e4cb 100644 (file)
@@ -707,8 +707,7 @@ void cgit_print_snapshot_links(const char *repo, const char *head,
                        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/>");
        }
 }