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 /ui-snapshot.c | |
parent | b88cda6e5b4472fc1bb0ae00d9fb974ec4f61d7a (diff) | |
download | cgit-3ec6b309505dc5f7ba14abe8861b02da34a9df0b.tar.gz cgit-3ec6b309505dc5f7ba14abe8861b02da34a9df0b.tar.bz2 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 'ui-snapshot.c')
-rw-r--r-- | ui-snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-snapshot.c b/ui-snapshot.c index 126779d..07cc944 100644 --- a/ui-snapshot.c +++ b/ui-snapshot.c | |||
@@ -19,7 +19,7 @@ static int write_compressed_tar_archive(struct archiver_args *args,const char *f | |||
19 | f.argv = malloc(2 * sizeof(char *)); | 19 | f.argv = malloc(2 * sizeof(char *)); |
20 | f.argv[0] = f.cmd; | 20 | f.argv[0] = f.cmd; |
21 | f.argv[1] = NULL; | 21 | f.argv[1] = NULL; |
22 | cgit_open_filter(&f, NULL); | 22 | cgit_open_filter(&f); |
23 | rv = write_tar_archive(args); | 23 | rv = write_tar_archive(args); |
24 | cgit_close_filter(&f); | 24 | cgit_close_filter(&f); |
25 | return rv; | 25 | return rv; |