]> git.ipfire.org Git - thirdparty/git.git/blobdiff - hook.c
Merge branch 'ab/hooks-regression-fix'
[thirdparty/git.git] / hook.c
diff --git a/hook.c b/hook.c
index 0fbf41d5b015ed950e22a5663ad7f64921b1ea20..a493939a4fc5901d85a9ad08ca10669641598389 100644 (file)
--- a/hook.c
+++ b/hook.c
@@ -54,7 +54,7 @@ static int pick_next_hook(struct child_process *cp,
                return 0;
 
        cp->no_stdin = 1;
-       strvec_pushv(&cp->env_array, hook_cb->options->env.v);
+       strvec_pushv(&cp->env, hook_cb->options->env.v);
        cp->stdout_to_stderr = 1;
        cp->trace2_hook_name = hook_cb->hook_name;
        cp->dir = hook_cb->options->dir;