summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-02-01 12:39:36 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-02-01 12:39:37 -0800
commitba96aa67be5a85a7f7a61e967c16e38d077fce88 (patch)
treec027aa6786f7d68de6fd8f4d2afa4eeef1145bbd /builtin
parentMerge branch 'nd/fetch-depth-is-broken' (diff)
parentclone: do not export and unexport GIT_CONFIG (diff)
downloadtgif-ba96aa67be5a85a7f7a61e967c16e38d077fce88.tar.xz
Merge branch 'jc/no-git-config-in-clone'
We stopped paying attention to $GIT_CONFIG environment that points at a single configuration file from any command other than "git config" quite a while ago, but "git clone" internally set, exported, and then unexported the variable during its operation unnecessarily. * jc/no-git-config-in-clone: clone: do not export and unexport GIT_CONFIG
Diffstat (limited to 'builtin')
-rw-r--r--builtin/clone.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/builtin/clone.c b/builtin/clone.c
index 36ec99db3f..e0aaf13583 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -767,8 +767,6 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
atexit(remove_junk);
sigchain_push_common(remove_junk_on_signal);
- setenv(CONFIG_ENVIRONMENT, mkpath("%s/config", git_dir), 1);
-
if (safe_create_leading_directories_const(git_dir) < 0)
die(_("could not create leading directories of '%s'"), git_dir);
@@ -787,13 +785,6 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
init_db(option_template, INIT_DB_QUIET);
write_config(&option_config);
- /*
- * At this point, the config exists, so we do not need the
- * environment variable. We actually need to unset it, too, to
- * re-enable parsing of the global configs.
- */
- unsetenv(CONFIG_ENVIRONMENT);
-
git_config(git_default_config, NULL);
if (option_bare) {