mirror of
https://git.zx2c4.com/cgit
synced 2025-08-03 01:25:34 +02:00
cgit.c: always setup cgit repo environment variables
When cgit learned to setup environment variables for certain repo settings before invoking a filter process, the setup occurred inside cgit_open_filter(). This patch moves the setup out of cgit_open_filter() and into prepare_repo_cmd() to prepare for additional uses of these variables. Reviewed-by: Ferry Huberts <mailings@hupie.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
b88cda6e5b
commit
3ec6b30950
8 changed files with 14 additions and 12 deletions
4
cgit.h
4
cgit.h
|
@ -319,9 +319,11 @@ extern const char *cgit_repobasename(const char *reponame);
|
|||
|
||||
extern int cgit_parse_snapshots_mask(const char *str);
|
||||
|
||||
extern int cgit_open_filter(struct cgit_filter *filter, struct cgit_repo * repo);
|
||||
extern int cgit_open_filter(struct cgit_filter *filter);
|
||||
extern int cgit_close_filter(struct cgit_filter *filter);
|
||||
|
||||
extern void cgit_prepare_repo_env(struct cgit_repo * repo);
|
||||
|
||||
extern int readfile(const char *path, char **buf, size_t *size);
|
||||
|
||||
extern char *expand_macros(const char *txt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue