diff --git a/vendor/lib/lib_git.cmd b/vendor/lib/lib_git.cmd index b802efe..46df747 100644 --- a/vendor/lib/lib_git.cmd +++ b/vendor/lib/lib_git.cmd @@ -240,16 +240,13 @@ exit /b if ERRORLEVEL 0 ( if exist "!test_dir:~0,-4!\cmd\git.exe" ( set "GIT_INSTALL_ROOT=!test_dir:~0,-4!" - set test_dir= ) else ( set "GIT_INSTALL_ROOT=!test_dir!" - set test_dir= ) ) else ( !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 ( :: compare the user git version against the vendored version :: if the user provided git executable is not found