diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-01-11 14:43:42 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-11 14:57:10 -0800 |
commit | 3f4f4cc0da03b312fabcd5a509baa8092de39534 (patch) | |
tree | c1621707b05bb6cf6b098f585162d5f3de33cc03 /builtin/rev-list.c | |
parent | Git 1.7.10.5 (diff) | |
download | tgif-3f4f4cc0da03b312fabcd5a509baa8092de39534.tar.xz |
clone: do not export and unexport GIT_CONFIG
Earlier, dc87183 (use GIT_CONFIG only in "git config", not other
programs, 2008-06-30) made sure that the environment variable is
never used outside "git config", but "git clone", after creating a
directory for the new repository and until the init_db() function
populates its .git/ directory, exported the variable for no good
reason. No hook will run from init_db() and more importantly no
hook can run until init_db() finishes creation of the new
repository, so it cannot be used by any invocation of "git config"
by definition.
Stop doing the useless export/unexport.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rev-list.c')
0 files changed, 0 insertions, 0 deletions