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
rodzic 71ebcbe23a
commit f97c707a3b
4 zmienionych plików z 60 dodań i 42 usunięć

2
cgit.c
Wyświetl plik

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