Skip to content

Commit

Permalink
Merge pull request #2265 from andyburgess/master
Browse files Browse the repository at this point in the history
Fixes #2247, fixes #2254
  • Loading branch information
daxgames authored Mar 6, 2020
2 parents 638d82e + 251968b commit a92bb19
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vendor/init.bat
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ for /F "delims=" %%F in ('where git.exe 2^>nul') do (
call :compare_git_versions
)

if defined GIT_INSTALL_ROOT (
goto :FOUND_GIT
)

:: our last hope: our own git...
:VENDORED_GIT
if exist "%CMDER_ROOT%\vendor\git-for-windows" (
Expand Down Expand Up @@ -399,11 +403,9 @@ exit /b
if %errorlevel% geq 0 if exist "%test_dir:~0,-4%\cmd\git.exe" (
set "GIT_INSTALL_ROOT=%test_dir:~0,-4%"
set test_dir=
goto :FOUND_GIT
) else if %errorlevel% geq 0 (
set "GIT_INSTALL_ROOT=%test_dir%"
set test_dir=
goto :FOUND_GIT
) else (
call :verbose_output Found old %GIT_VERSION_USER% in "%test_dir%", but not using...
set test_dir=
Expand Down

0 comments on commit a92bb19

Please sign in to comment.