Skip to content

Commit 848cd65

Browse files
committed
t9390: work around clash with MSYS2's Unix<->Win32 path conversion
MSYS2 tries to be very helpful, and in most cases it even works, by converting parameters passed from inside an MSYS2 Bash to a non-MSYS2 application (such as `git.exe`) if they look like Unix-style paths or path lists. Sometimes, however, this automatic path conversion is unhelpful, e.g. when passing the parameter `foo:.` to Git, which MSYS2 will readily convert to a Windows-style path list: `foo;bar` (i.e. using a semicolon instead of a colon). Happily, there is a way to avoid that: the `MSYS_NO_PATHCONV` variable. Let's use it. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 6967fad commit 848cd65

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

t/t9390-filter-repo.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,12 @@ test_expect_success 'startup sanity checks' '
11971197

11981198
test_expect_success 'other startup error cases and requests for help' '
11991199
(
1200+
# prevent MSYS2 (Git for Windows) from converting the colon to
1201+
# a semicolon when encountering parameters that look like
1202+
# Unix-style, colon-separated path lists (such as `foo:.`)
1203+
MSYS_NO_PATHCONV=1 &&
1204+
export MSYS_NO_PATHCONV
1205+
12001206
git init startup_errors &&
12011207
cd startup_errors &&
12021208

0 commit comments

Comments
 (0)