summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--cgit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index b0e1c44..97f5e08 100644
--- a/cgit.c
+++ b/cgit.c
@@ -133,12 +133,14 @@ void config_cb(const char *name, const char *value)
133 else if (!strcmp(name, "local-time")) 133 else if (!strcmp(name, "local-time"))
134 ctx.cfg.local_time = atoi(value); 134 ctx.cfg.local_time = atoi(value);
135 else if (!prefixcmp(name, "mimetype.")) 135 else if (!prefixcmp(name, "mimetype."))
136 add_mimetype(name + 9, value); 136 add_mimetype(name + 9, value);
137 else if (!strcmp(name, "repo.group")) 137 else if (!strcmp(name, "repo.group"))
138 ctx.cfg.repo_group = xstrdup(value); 138 ctx.cfg.repo_group = xstrdup(value);
139 else if (!strcmp(name, "repo.scan"))
140 scan_tree(value);
139 else if (!strcmp(name, "repo.url")) 141 else if (!strcmp(name, "repo.url"))
140 ctx.repo = cgit_add_repo(value); 142 ctx.repo = cgit_add_repo(value);
141 else if (!strcmp(name, "repo.name")) 143 else if (!strcmp(name, "repo.name"))
142 ctx.repo->name = xstrdup(value); 144 ctx.repo->name = xstrdup(value);
143 else if (ctx.repo && !strcmp(name, "repo.path")) 145 else if (ctx.repo && !strcmp(name, "repo.path"))
144 ctx.repo->path = trim_end(value, '/'); 146 ctx.repo->path = trim_end(value, '/');