mirror of
https://github.com/git/git.git
synced 2026-01-18 06:34:21 +00: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>