summaryrefslogtreecommitdiffabout
path: root/cgit.c
Side-by-side diff
Diffstat (limited to 'cgit.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cgit.c b/cgit.c
index 73b1f02..1f46e0d 100644
--- a/cgit.c
+++ b/cgit.c
@@ -10,4 +10,5 @@
#include "cache.h"
#include "cmd.h"
+#include "configfile.h"
#include "ui-shared.h"
@@ -104,5 +105,5 @@ void config_cb(const char *name, const char *value)
ctx.repo->readme = xstrdup(fmt("%s/%s", ctx.repo->path, value));
} else if (!strcmp(name, "include"))
- cgit_read_config(value, config_cb);
+ parse_configfile(value, config_cb);
}
@@ -437,5 +438,5 @@ int main(int argc, const char **argv)
cgit_repolist.repos = NULL;
- cgit_read_config(cgit_config_env ? cgit_config_env : CGIT_CONFIG,
+ parse_configfile(cgit_config_env ? cgit_config_env : CGIT_CONFIG,
config_cb);
if (getenv("SCRIPT_NAME"))