]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
Introduce 'section' as canonical spelling for 'repo.group'
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index a792fe46eaf73d842a16dbca127ddbe6b43a96f0..013a0feb3a3f36923c7cf59c76c964d690edaaf8 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -143,8 +143,8 @@ void config_cb(const char *name, const char *value)
                ctx.cfg.local_time = atoi(value);
        else if (!prefixcmp(name, "mimetype."))
                add_mimetype(name + 9, value);
-       else if (!strcmp(name, "repo.group"))
-               ctx.cfg.repo_group = xstrdup(value);
+       else if (!strcmp(name, "section") || !strcmp(name, "repo.group"))
+               ctx.cfg.section = xstrdup(value);
        else if (!strcmp(name, "repo.url"))
                ctx.repo = cgit_add_repo(value);
        else if (!strcmp(name, "repo.name"))