summaryrefslogtreecommitdiffabout
path: root/cgit.c
Side-by-side diff
Diffstat (limited to 'cgit.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cgit.c b/cgit.c
index 594b950..6ece411 100644
--- a/cgit.c
+++ b/cgit.c
@@ -120,2 +120,7 @@ void config_cb(const char *name, const char *value)
ctx.cfg.max_commit_count = atoi(value);
+ else if (!strcmp(name, "scan-path"))
+ if (!ctx.cfg.nocache && ctx.cfg.cache_size)
+ process_cached_repolist(value);
+ else
+ scan_tree(value);
else if (!strcmp(name, "source-filter"))
@@ -142,7 +147,2 @@ void config_cb(const char *name, const char *value)
ctx.cfg.repo_group = xstrdup(value);
- else if (!strcmp(name, "repo.scan"))
- if (!ctx.cfg.nocache && ctx.cfg.cache_size)
- process_cached_repolist(value);
- else
- scan_tree(value);
else if (!strcmp(name, "repo.url"))