2
0
mirror of https://git.zx2c4.com/cgit synced 2025-09-05 08:45:37 +00: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:
Michael Krelin
2007-07-18 14:40:03 +02:00
parent 71ebcbe23a
commit f97c707a3b
4 changed files with 60 additions and 42 deletions

2
cgit.c
View File

@@ -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;
}