diff options
author | Lars Hjemli <hjemli@gmail.com> | 2009-08-11 17:09:06 (JST) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2009-08-24 17:22:57 (JST) |
commit | 6f3bf1ae1eb1d4114a1df0194b2236665a13bdac (patch) | |
tree | 29dd35a343ecb56844c7b8acffa6e89f5c153ee4 | |
parent | fb9bf55cde24bbb46568575fc65739a9226f8216 (diff) | |
download | cgit-6f3bf1ae1eb1d4114a1df0194b2236665a13bdac.zip cgit-6f3bf1ae1eb1d4114a1df0194b2236665a13bdac.tar.gz |
cgit.c: add support for cgitrc option 'repo.scan'
When specified, the specified path will be scanned for repositories.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -136,6 +136,8 @@ void config_cb(const char *name, const char *value) | |||
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")) |