The /etc/repo_shell.cfg configuration file is straightforward:
- [core]
owner=repo
git_root=/var/lib/git
svn_root=/var/lib/svn/repositories
activating svnperms.conf for branch-based commit control. These are suggestions
outside the scope of the repo_shell program itself.
-Access controls for git repositories uses a feature built-into repo_shell.
-The /etc/repo_shell.cfg file lists a core parameter git_acl_file, which
-should be set to the name of the git acl file. A recommended name is
-/var/lib/git/.gitacls, with permissions 0400. See git_acl.cfg.example for
-information on the format of this file, which is similar in concept, but
-different, than subversion's authz.conf file format.
+Access controls for git repositories uses a feature built-into repo_shell. The
+/etc/repo_shell.cfg file lists a parameter git_acl_file, which should be set to
+the name of the git acl file. A recommended name is /var/lib/git/.gitacls, with
+permissions 0400. See git_acl.cfg.example for information on the format of this
+file, which is similar in concept, but different, than subversion's authz.conf
+file format.
{
cfg_t* pconfig = (cfg_t*)user;
- #define MATCH(s, n) strcmp(section, s) == 0 && strcmp(name, n) == 0
- if (MATCH("core", "svn_root"))
+ if (!strcmp(name, "svn_root"))
pconfig->svn_root = xstrdup(value);
- else if (MATCH("core", "git_root"))
+ else if (!strcmp(name, "git_root"))
pconfig->git_root = xstrdup(value);
- else if (MATCH("core", "owner"))
+ else if (!strcmp(name, "owner"))
pconfig->owner = xstrdup(value);
- else if (MATCH("core", "git_acl_file"))
+ else if (!strcmp(name, "git_acl_file"))
pconfig->git_acl_file = xstrdup(value);
else
return 0; /* unknown section/name, error */