cmder/vendor/lib
Florian Schwalm 0ed10e5e89 Reorder if-else-clauses in :compare_git_versions so last else block can be reached
It is hard to spot without the brackets, but the last else block - that resets %test_dir% and
logs in verbose mode that an older user git version will be ignored - can't actually be reached.
The else block is considered to belong to the if clause "if exist "%test_dir:~0,-4%\cmd\git.exe""
that will only ever be executed if ERRORLEVEL is greather than or equal to 0, thus if the test fails,
the following else if clause "else if ERRORLEVEL 0" will always succeed and the last else block will be ignored.
Using the vendored git version may still have worked because %GIT_INSTALL_ROOT% isn't set either way,
but to enable the log message I reordered if-else-clauses and brackets in the way I think the
original author intended them to work.
2020-07-29 22:39:46 +02:00
..
lib_base.cmd cleanup 2019-08-22 06:20:19 -04:00
lib_console.cmd Add /f for fast init. (#1942) 2018-11-04 01:36:51 +01:00
lib_git.cmd Reorder if-else-clauses in :compare_git_versions so last else block can be reached 2020-07-29 22:39:46 +02:00
lib_path.cmd Fix and enhance enhance_path_recursive 2020-04-29 12:03:24 -04:00
lib_profile.cmd Add /f for fast init. (#1942) 2018-11-04 01:36:51 +01:00
start-ssh-agent.sh Move ssh-agent logic to lib script 2018-12-13 21:12:18 -08:00