mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +08:00
Merge pull request #1905 from narnaud/git_shim
Ensure the right git path is found in case of shim.
This commit is contained in:
commit
c5a6afbf5b
11
vendor/init.bat
vendored
11
vendor/init.bat
vendored
@ -154,7 +154,16 @@ if defined GIT_INSTALL_ROOT (
|
||||
for /F "delims=" %%F in ('where git.exe 2^>nul') do (
|
||||
:: get the absolute path to the user provided git binary
|
||||
pushd %%~dpF
|
||||
set "test_dir=!CD!"
|
||||
:: check if there's shim - and if yes follow the path
|
||||
if exist git.shim (
|
||||
for /F "tokens=2 delims== " %%I in (git.shim) do (
|
||||
pushd %%~dpI
|
||||
set "test_dir=!CD!"
|
||||
popd
|
||||
)
|
||||
) else (
|
||||
set "test_dir=!CD!"
|
||||
)
|
||||
popd
|
||||
|
||||
:: get the version information for the user provided git binary
|
||||
|
Loading…
Reference in New Issue
Block a user