mingw: initialize HOME on startup
commite12a9556602f4d94254cc4eda25b5615ff07131a
authorKarsten Blees <blees@dcon.de>
Thu, 4 Jul 2019 09:20:33 +0000 (4 02:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 Jul 2019 21:55:02 +0000 (8 14:55 -0700)
tree831ade0b6e68595c279ab8fcb468898610bcd4da
parent8dca754b1e874719a732bc9ab7b0e14b21b1bc10
mingw: initialize HOME on startup

HOME initialization was historically duplicated in many different places,
including /etc/profile, launch scripts such as git-bash.vbs and gitk.cmd,
and (although slightly broken) in the git-wrapper.

Even unrelated projects such as GitExtensions and TortoiseGit need to
implement the same logic to be able to call git directly.

Initialize HOME in git's own startup code so that we can eventually retire
all the duplicate initialization code.

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c