diff options
Diffstat (limited to 'connected.c')
| -rw-r--r-- | connected.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connected.c b/connected.c index cf68e37a97..ed3025e7a2 100644 --- a/connected.c +++ b/connected.c @@ -107,10 +107,10 @@ no_promisor_pack_found: if (opt->progress) strvec_pushf(&rev_list.args, "--progress=%s", _("Checking connectivity")); - strvec_push(&rev_list.args, "--unsorted-input"); rev_list.git_cmd = 1; - rev_list.env = opt->env; + if (opt->env) + strvec_pushv(&rev_list.env_array, opt->env); rev_list.in = -1; rev_list.no_stdout = 1; if (opt->err_fd) |
