mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-14 07:29:12 +08:00
only look at \cmd\git.exe for found git
This commit is contained in:
parent
864b85f254
commit
6d313853f3
2
vendor/init.bat
vendored
2
vendor/init.bat
vendored
@ -234,7 +234,7 @@ if defined GIT_INSTALL_ROOT (
|
|||||||
%lib_git% validate_version VENDORED %GIT_VERSION_VENDORED%
|
%lib_git% validate_version VENDORED %GIT_VERSION_VENDORED%
|
||||||
|
|
||||||
:: check if git is in path...
|
:: check if git is in path...
|
||||||
for /F "delims=" %%F in ('where git.exe 2^>nul') do (
|
for /F "delims=" %%F in ('where git.exe 2^>nul ^| find "\cmd\git.exe"') do (
|
||||||
:: get the absolute path to the user provided git binary
|
:: get the absolute path to the user provided git binary
|
||||||
%lib_git% is_git_shim "%%~dpF"
|
%lib_git% is_git_shim "%%~dpF"
|
||||||
%lib_git% get_user_git_version
|
%lib_git% get_user_git_version
|
||||||
|
Loading…
Reference in New Issue
Block a user