the repository which powers this website
cgit.c: add support for cgitrc option 'repo.scan'
When specified, the specified path will be scanned for repositories. Signed-off-by: Lars Hjemli <[email protected]>
Lars Hjemli 2009-08-24
parent fb9bf55 · commit 6f3bf1a
-rw-r--r--cgit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index b0e1c443..97f5e085 100644
--- a/cgit.c
+++ b/cgit.c
@@ -136,6 +136,8 @@ void config_cb(const char *name, const char *value)
add_mimetype(name + 9, value);
else if (!strcmp(name, "repo.group"))
ctx.cfg.repo_group = xstrdup(value);
+ else if (!strcmp(name, "repo.scan"))
+ scan_tree(value);
else if (!strcmp(name, "repo.url"))
ctx.repo = cgit_add_repo(value);
else if (!strcmp(name, "repo.name"))