@@ -699,17 +699,13 @@ test_expect_success 'invalid unit' '
699
699
echo 1auto >expect &&
700
700
git config aninvalid.unit >actual &&
701
701
test_cmp expect actual &&
702
- cat >expect <<-\EOF &&
703
- fatal: bad numeric config value ' \' ' 1auto' \' ' for ' \' ' aninvalid.unit' \' ' in file .git/config: invalid unit
704
- EOF
705
702
test_must_fail git config --int --get aninvalid.unit 2>actual &&
706
- test_i18ncmp expect actual
703
+ test_i18ngrep "bad numeric config value .1auto. for .aninvalid.unit. in file .git/config: invalid unit" actual
707
704
'
708
705
709
706
test_expect_success ' invalid stdin config' '
710
- echo "fatal: bad config line 1 in standard input " >expect &&
711
707
echo "[broken" | test_must_fail git config --list --file - >output 2>&1 &&
712
- test_cmp expect output
708
+ test_i18ngrep "bad config line 1 in standard input" output
713
709
'
714
710
715
711
cat > expect << EOF
@@ -1209,6 +1205,9 @@ test_expect_success POSIXPERM,PERL 'preserves existing permissions' '
1209
1205
"die q(badrename) if ((stat(q(.git/config)))[2] & 07777) != 0600"
1210
1206
'
1211
1207
1208
+ ! test_have_prereq MINGW ||
1209
+ HOME=" $( pwd) " # convert to Windows path
1210
+
1212
1211
test_expect_success ' set up --show-origin tests' '
1213
1212
INCLUDE_DIR="$HOME/include" &&
1214
1213
mkdir -p "$INCLUDE_DIR" &&
@@ -1308,7 +1307,7 @@ test_expect_success 'set up custom config file' '
1308
1307
EOF
1309
1308
'
1310
1309
1311
- test_expect_success ' --show-origin escape special file name characters' '
1310
+ test_expect_success ! MINGW ' --show-origin escape special file name characters' '
1312
1311
cat >expect <<-\EOF &&
1313
1312
file:"file\" (dq) and spaces.conf" user.custom=true
1314
1313
EOF
@@ -1337,7 +1336,7 @@ test_expect_success '--show-origin stdin with file include' '
1337
1336
test_cmp expect output
1338
1337
'
1339
1338
1340
- test_expect_success ' --show-origin blob' '
1339
+ test_expect_success ! MINGW ' --show-origin blob' '
1341
1340
cat >expect <<-\EOF &&
1342
1341
blob:a9d9f9e555b5c6f07cbe09d3f06fe3df11e09c08 user.custom=true
1343
1342
EOF
@@ -1346,7 +1345,7 @@ test_expect_success '--show-origin blob' '
1346
1345
test_cmp expect output
1347
1346
'
1348
1347
1349
- test_expect_success ' --show-origin blob ref' '
1348
+ test_expect_success ! MINGW ' --show-origin blob ref' '
1350
1349
cat >expect <<-\EOF &&
1351
1350
blob:"master:file\" (dq) and spaces.conf" user.custom=true
1352
1351
EOF
0 commit comments