From cda883bc39442c2317176f3834bfe07aecd225d6 Mon Sep 17 00:00:00 2001 From: "Dax T. Games" Date: Sun, 23 Aug 2020 08:47:20 -0400 Subject: [PATCH] add setlocal --- vendor/lib/lib_git.cmd | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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