|
diff --git a/cgit.c b/cgit.c index 3943a0f..f749b6b 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -180,9 +180,9 @@ static int cgit_prepare_cache(struct cacheitem *item) |
180 | item->ttl = ctx.cfg.cache_root_ttl; |
180 | item->ttl = ctx.cfg.cache_root_ttl; |
181 | return 1; |
181 | return 1; |
182 | } |
182 | } |
183 | |
183 | |
184 | if (!cgit_cmd) { |
184 | if (!ctx.qry.page) { |
185 | item->name = xstrdup(fmt("%s/%s/index.%s.html", ctx.cfg.cache_root, |
185 | item->name = xstrdup(fmt("%s/%s/index.%s.html", ctx.cfg.cache_root, |
186 | cache_safe_filename(ctx.repo->url), |
186 | cache_safe_filename(ctx.repo->url), |
187 | cache_safe_filename(ctx.qry.raw))); |
187 | cache_safe_filename(ctx.qry.raw))); |
188 | item->ttl = ctx.cfg.cache_repo_ttl; |
188 | item->ttl = ctx.cfg.cache_repo_ttl; |
|
|
diff --git a/cgit.h b/cgit.h index b58676b..e82e9aa 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -188,9 +188,8 @@ extern const char *cgit_version; |
188 | |
188 | |
189 | extern struct cgit_repolist cgit_repolist; |
189 | extern struct cgit_repolist cgit_repolist; |
190 | extern struct cgit_context ctx; |
190 | extern struct cgit_context ctx; |
191 | extern const struct cgit_snapshot_format cgit_snapshot_formats[]; |
191 | extern const struct cgit_snapshot_format cgit_snapshot_formats[]; |
192 | extern int cgit_cmd; |
| |
193 | |
192 | |
194 | extern struct cgit_repo *cgit_add_repo(const char *url); |
193 | extern struct cgit_repo *cgit_add_repo(const char *url); |
195 | extern struct cgit_repo *cgit_get_repoinfo(const char *url); |
194 | extern struct cgit_repo *cgit_get_repoinfo(const char *url); |
196 | extern void cgit_repo_config_cb(const char *name, const char *value); |
195 | extern void cgit_repo_config_cb(const char *name, const char *value); |
|