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>
这个提交包含在:
@ -81,6 +81,10 @@ static void add_repo(const char *base, const char *path, repo_config_fn fn)
|
||||
path, strerror(errno), errno);
|
||||
return;
|
||||
}
|
||||
|
||||
if (ctx.cfg.strict_export && stat(fmt("%s/%s", path, ctx.cfg.strict_export), &st))
|
||||
return;
|
||||
|
||||
if (!stat(fmt("%s/noweb", path), &st))
|
||||
return;
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户