From 9b3adc190cc9570d1f2c194424849d776833ccd6 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:31:16 -0700 Subject: Rename prepare_repo_env to open_repo It opens the repository and loads its notes, while cgit_prepare_repo_env exports the CGIT_REPO_ variables, and the two names were one prefix apart. --- source/cgit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') 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)) { -- cgit