summaryrefslogtreecommitdiff
path: root/environment.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-08-24 01:41:14 -0500
committerJunio C Hamano <gitster@pobox.com>2010-08-24 09:54:00 -0700
commit655e8d9c92121b1d84fda91b73c4a0daa638cbf8 (patch)
tree689f9e6c69b512e7391c21aa0f853bc04d9f8b2a /environment.c
parent2b64fc894dada0916558fd0bfd19c50631f978cb (diff)
downloadgit-655e8d9c92121b1d84fda91b73c4a0daa638cbf8.tar.gz
do not pass "git -c foo=bar" params to transport helpers
Like $GIT_CONFIG, $GIT_CONFIG_PARAMETERS needs to be suppressed by "git push" and its cousins when running local transport helpers to imitate remote transport well. Noticed-by: Jeff King <peff@peff.net> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'environment.c')
-rw-r--r--environment.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/environment.c b/environment.c
index 83d38d3c23..a199f6372b 100644
--- a/environment.c
+++ b/environment.c
@@ -72,6 +72,7 @@ static char *git_object_dir, *git_index_file, *git_refs_dir, *git_graft_file;
const char * const local_repo_env[LOCAL_REPO_ENV_SIZE + 1] = {
ALTERNATE_DB_ENVIRONMENT,
CONFIG_ENVIRONMENT,
+ CONFIG_DATA_ENVIRONMENT,
DB_ENVIRONMENT,
GIT_DIR_ENVIRONMENT,
GIT_WORK_TREE_ENVIRONMENT,