This adds the missing GIT_CONFIG to the list of env vars that should be cleared. Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@xxxxxxxxx> --- connect.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/connect.c b/connect.c index 9f39038..94b3707 100644 --- a/connect.c +++ b/connect.c @@ -582,18 +582,7 @@ struct child_process *git_connect(int fd[2], const char *url_orig, *arg++ = host; } else { - /* remove these from the environment */ - const char *env[] = { - ALTERNATE_DB_ENVIRONMENT, - DB_ENVIRONMENT, - GIT_DIR_ENVIRONMENT, - GIT_WORK_TREE_ENVIRONMENT, - GRAFT_ENVIRONMENT, - INDEX_ENVIRONMENT, - NO_REPLACE_OBJECTS_ENVIRONMENT, - NULL - }; - conn->env = env; + conn->env = local_repo_env; conn->use_shell = 1; } *arg++ = cmd.buf; -- 1.7.0.212.g4e217.dirty -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html