Diff options
Diffstat (limited to 'source')
-rw-r--r--source/cgit.c4
1 file changed, 2 insertions, 2 deletions
diff --git a/source/cgit.c b/source/cgit.c
index faf5ab8..dbce55b 100644
--- a/source/cgit.c
+++ b/source/cgit.c
@@ -1032,7 +1032,7 @@ static void choose_readme(struct cgit_repo *repo)
string_list_append(&repo->readme, filename)->util = ref;
}
-static void prepare_repo_env(int *nongit, int *err)
+static void open_repo(int *nongit, int *err)
{
// A repository configured without a path has nothing to open.
if (!ctx.repo->path) {
@@ -1150,7 +1150,7 @@ static void process_request(void)
}
if (ctx.repo)
- prepare_repo_env(&nongit, &err);
+ open_repo(&nongit, &err);
cmd = cgit_get_cmd();
if (!cmd || (!ctx.cfg.enable_http_clone && cmd->is_clone)) {