]> git.ipfire.org Git - thirdparty/git.git/blobdiff - connected.c
refs: print error message in debug output
[thirdparty/git.git] / connected.c
index cf68e37a97b612d7ac4c05370c72421b2b714c3f..ed3025e7a2a7cffdc6607aa9408d097f6d537768 100644 (file)
@@ -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)