From: Giuseppe Bilotta Date: Wed, 24 Feb 2010 07:23:12 GMT Subject: [PATCHv4 2/6] connect: use static list of repo-local env vars Message-ID: <1266996196-25978-3-git-send-email-giuseppe.bilotta@gmail.com> In-Reply-To: <1266996196-25978-1-git-send-email-giuseppe.bilotta@gmail.com> This adds the missing GIT_CONFIG to the list of env vars that should be cleared. Signed-off-by: Giuseppe Bilotta --- 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