mirror of
https://git.zx2c4.com/cgit
synced 2025-07-23 04:04:42 +02:00
add support for snapshot tarballs
- reworked cgit_print_snapshot to use a list of supported archivers and pick one for the suffix supplied - moved printing of snaphot links into ui-snapshot and make it iterate through the said list
This commit is contained in:
parent
71ebcbe23a
commit
f97c707a3b
4 changed files with 60 additions and 42 deletions
2
cgit.c
2
cgit.c
|
@ -68,7 +68,7 @@ static void cgit_print_repo_page(struct cacheitem *item)
|
|||
setenv("GIT_DIR", cgit_repo->path, 1);
|
||||
|
||||
if ((cgit_cmd == CMD_SNAPSHOT) && cgit_repo->snapshots) {
|
||||
cgit_print_snapshot(item, cgit_query_sha1, "zip",
|
||||
cgit_print_snapshot(item, cgit_query_sha1,
|
||||
cgit_repo->url, cgit_query_name);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue