mirror of
https://github.com/cmderdev/cmder.git
synced 2025-02-10 23:49:07 +08:00
add setlocal
This commit is contained in:
parent
b1ef763922
commit
cda883bc39
5
vendor/lib/lib_git.cmd
vendored
5
vendor/lib/lib_git.cmd
vendored
@ -240,16 +240,13 @@ exit /b
|
|||||||
if ERRORLEVEL 0 (
|
if ERRORLEVEL 0 (
|
||||||
if exist "!test_dir:~0,-4!\cmd\git.exe" (
|
if exist "!test_dir:~0,-4!\cmd\git.exe" (
|
||||||
set "GIT_INSTALL_ROOT=!test_dir:~0,-4!"
|
set "GIT_INSTALL_ROOT=!test_dir:~0,-4!"
|
||||||
set test_dir=
|
|
||||||
) else (
|
) else (
|
||||||
set "GIT_INSTALL_ROOT=!test_dir!"
|
set "GIT_INSTALL_ROOT=!test_dir!"
|
||||||
set test_dir=
|
|
||||||
)
|
)
|
||||||
) else (
|
) else (
|
||||||
!lib_console! verbose_output "Found old !GIT_VERSION_USER! in !test_dir!, but not using..."
|
!lib_console! verbose_output "Found old !GIT_VERSION_USER! in !test_dir!, but not using..."
|
||||||
set test_dir=
|
|
||||||
)
|
)
|
||||||
endlocal && set "GIT_INSTALL_ROOT=%GIT_INSTALL_ROOT%
|
endlocal && set "GIT_INSTALL_ROOT=%GIT_INSTALL_ROOT% & set test_dir=
|
||||||
) else (
|
) else (
|
||||||
:: compare the user git version against the vendored version
|
:: compare the user git version against the vendored version
|
||||||
:: if the user provided git executable is not found
|
:: if the user provided git executable is not found
|
||||||
|
Loading…
Reference in New Issue
Block a user