Win32: patch Windows environment on startup
commit6dc715439b8e9ec85d6412750665431dd6a5afc6
authorKarsten Blees <blees@dcon.de>
Thu, 17 Jul 2014 15:38:05 +0000 (17 17:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Jul 2014 16:32:50 +0000 (21 09:32 -0700)
treeb8584c68e2419454c2ea4944da3b38b177255389
parent343ff06da7d83f40892b10a3b653c7d0e6cb526c
Win32: patch Windows environment on startup

Fix Windows specific environment settings on startup rather than checking
for special values on every getenv call.

As a side effect, this makes the patched environment (i.e. with properly
initialized TMPDIR and TERM) available to child processes.

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Stepan Kasal <kasal@ucw.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c