Add ability to use PATH from the specified environment
commitd8863376dd942873604f4c6cefa5eafa516b56ac
authorKirill <kirillathome@gmail.com>
Wed, 3 Sep 2008 01:49:21 +0000 (2 21:49 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 18 Oct 2008 14:26:29 +0000 (18 16:26 +0200)
treedd5dd1aac1bb4d05c165a9b6f70b9a63ffac9838
parentc940699d02aaff2e060315095d1799be41bc99d3
Add ability to use PATH from the specified environment

If mingw_spawnvpe is called with a specified environment, we want to use
the PATH variable from the new environment, because it may be adjusted
to include git.exe or sh.exe. Thus, we need to pass the last parameter
of mingw_spawnvpe to all calls of get_path_split. If PATH variable is not
found in the specified environment or the environment was not specified at
all, we'll use PATH from the current one, as before.
compat/mingw.c