summaryrefslogtreecommitdiff
path: root/url.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-11 22:43:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-01-11 22:57:10 (GMT)
commit3f4f4cc0da03b312fabcd5a509baa8092de39534 (patch)
treec1621707b05bb6cf6b098f585162d5f3de33cc03 /url.h
parent785ee4960c3d334cbc2b17ab74d2cebdf1b4db64 (diff)
downloadgit-3f4f4cc0da03b312fabcd5a509baa8092de39534.zip
git-3f4f4cc0da03b312fabcd5a509baa8092de39534.tar.gz
git-3f4f4cc0da03b312fabcd5a509baa8092de39534.tar.bz2
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 'url.h')
0 files changed, 0 insertions, 0 deletions