Diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/cgit.c | 2 |
1 file changed, 1 insertion, 1 deletion
diff --git a/source/cgit.c b/source/cgit.c index dc483ee..81f2b14 100644 --- a/source/cgit.c +++ b/source/cgit.c @@ -698,7 +698,7 @@ static void apply_config(const char *name, const char *value) else if (!strcmp(name, "project-list")) ctx.cfg.project_list = cgit_strdup_first_line(cgit_expand_macros(value)); else if (!strcmp(name, "scan-path")) { - if (ctx.cfg.cache_size) + if (ctx.cfg.cache_size > 0) process_cached_repolist(cgit_expand_macros(value)); else scan_tree(cgit_expand_macros(value)); |
