summaryrefslogtreecommitdiff
path: root/cgit.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cgit.c b/cgit.c
index 2479986998..c3ddfaba1c 100644
--- a/cgit.c
+++ b/cgit.c
@@ -161,6 +161,8 @@ static void config_cb(const char *name, const char *value)
ctx.cfg.root_readme = xstrdup(value);
else if (!strcmp(name, "root-coc"))
ctx.cfg.root_coc = xstrdup(value);
+ else if (!strcmp(name, "root-cla"))
+ ctx.cfg.root_cla = xstrdup(value);
else if (!strcmp(name, "css"))
string_list_append(&ctx.cfg.css, xstrdup(value));
else if (!strcmp(name, "js"))
@@ -1075,7 +1077,8 @@ static int calc_ttl(void)
if (!ctx.qry.page)
return ctx.cfg.cache_repo_ttl;
- if (!strcmp(ctx.qry.page, "about") || !strcmp(ctx.qry.page, "coc"))
+ if (!strcmp(ctx.qry.page, "about") || !strcmp(ctx.qry.page, "coc") ||
+ !strcmp(ctx.qry.page, "cla"))
return ctx.cfg.cache_about_ttl;
if (!strcmp(ctx.qry.page, "snapshot"))