summaryrefslogtreecommitdiff
path: root/cgit.c
diff options
context:
space:
mode:
authorFelix Hanley <felix@seconddrawer.com.au>2010-11-08 19:41:13 +0100
committerLars Hjemli <hjemli@gmail.com>2010-11-08 19:41:13 +0100
commite0c6f23789e4893781bcd5af2281d468991ccf3a (patch)
tree1cffe4d35b6404dd59cd0f0a314e11944e37d0f2 /cgit.c
parent49d09d4fd1b0cab8189cf1809a1b1241f54c2e48 (diff)
Add `strict-export` option
This option is used to specify a filename which needs to be present in the repositories found during `scan-path` processing. By setting this option to 'git-daemon-export-ok', only repositories explicitly marked for git daemon export will be included in the cgit configuration. Signed-off-by: Felix Hanley <felix@seconddrawer.com.au> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index 96900bb..412fbf0 100644
--- a/cgit.c
+++ b/cgit.c
@@ -121,6 +121,8 @@ void config_cb(const char *name, const char *value)
ctx.cfg.logo_link = xstrdup(value);
else if (!strcmp(name, "module-link"))
ctx.cfg.module_link = xstrdup(value);
+ else if (!strcmp(name, "strict-export"))
+ ctx.cfg.strict_export = xstrdup(value);
else if (!strcmp(name, "virtual-root")) {
ctx.cfg.virtual_root = trim_end(value, '/');
if (!ctx.cfg.virtual_root && (!strcmp(value, "/")))