mirror of
https://github.com/git-for-windows/git.git
synced 2026-05-06 04:04:34 -05:00
While working on parallelizing the tests in Azure Pipelines, an issue was discovered with the `is_msys2_sh()` function: it expects the path components to be separated by exactly one dir separator. That does not need to be the case, though, e.g. when the components in the `PATH` variable have trailing slashes. Let's make the code much more robust in this respect. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>