diff options
author | Lars Hjemli | 2011-06-06 19:29:58 +0000 |
---|---|---|
committer | Lars Hjemli | 2011-06-13 23:03:46 +0000 |
commit | 3ec6b309505dc5f7ba14abe8861b02da34a9df0b (patch) | |
tree | 4dda97c3b85d8103f05332677c6e0a15113f3cf3 /cgit.c | |
parent | cgitrc.5.txt: reformat the "FILTER API" section (diff) | |
download | cgit-3ec6b309505dc5f7ba14abe8861b02da34a9df0b.tar.gz cgit-3ec6b309505dc5f7ba14abe8861b02da34a9df0b.zip |
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>
Diffstat (limited to 'cgit.c')
-rw-r--r-- | cgit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c index 6be3754..dd40893 100644 --- a/cgit.c +++ b/cgit.c | |||
@@ -463,6 +463,7 @@ static int prepare_repo_cmd(struct cgit_context *ctx) | |||
463 | cgit_print_docend(); | 463 | cgit_print_docend(); |
464 | return 1; | 464 | return 1; |
465 | } | 465 | } |
466 | cgit_prepare_repo_env(ctx->repo); | ||
466 | return 0; | 467 | return 0; |
467 | } | 468 | } |
468 | 469 | ||