]> git.ipfire.org Git - thirdparty/git.git/commit
mingw: unset PERL5LIB by default
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 30 Oct 2018 18:40:07 +0000 (11:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 31 Oct 2018 03:46:32 +0000 (12:46 +0900)
commit0e218f91c299b0bffa281d3449884a824819a201
treeab2bc76bbd5926e1cd296881a8a7f72da97b84d4
parentbdfbb0ea932d1ec479474cc7928ec9d47ea89e7b
mingw: unset PERL5LIB by default

Git for Windows ships with its own Perl interpreter, and insists on
using it, so it will most likely wreak havoc if PERL5LIB is set before
launching Git.

Let's just unset that environment variables when spawning processes.

To make this feature extensible (and overrideable), there is a new
config setting `core.unsetenvvars` that allows specifying a
comma-separated list of names to unset before spawning processes.

Reported by Gabriel Fuhrmann.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
compat/mingw.c
t/t0029-core-unsetenvvars.sh [new file with mode: 0755]