clone: do not export and unexport GIT_CONFIG
commit3f4f4cc0da03b312fabcd5a509baa8092de39534
authorJunio C Hamano <gitster@pobox.com>
Fri, 11 Jan 2013 22:43:42 +0000 (11 14:43 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 Jan 2013 22:57:10 +0000 (11 14:57 -0800)
treec1621707b05bb6cf6b098f585162d5f3de33cc03
parent785ee4960c3d334cbc2b17ab74d2cebdf1b4db64
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>
builtin/clone.c