Imported Upstream version 2.18.3
[platform/upstream/git.git] / t / t3300-funny-names.sh
index 7480d6e..04de03c 100755 (executable)
@@ -13,6 +13,7 @@ tree, index, and tree objects.
 
 HT='   '
 
+test_have_prereq MINGW ||
 echo 2>/dev/null > "Name with an${HT}HT"
 if ! test -f "Name with an${HT}HT"
 then
@@ -69,7 +70,7 @@ test_expect_success 'ls-files -z does not quote funny filename' '
        tabs    ," (dq) and spaces
        EOF
        git ls-files -z >ls-files.z &&
-       "$PERL_PATH" -pe "y/\000/\012/" <ls-files.z >current &&
+       perl -pe "y/\000/\012/" <ls-files.z >current &&
        test_cmp expected current
 '
 
@@ -106,7 +107,7 @@ test_expect_success 'diff-index -z does not quote funny filename' '
        tabs    ," (dq) and spaces
        EOF
        git diff-index -z --name-status $t0 >diff-index.z &&
-       "$PERL_PATH" -pe "y/\000/\012/" <diff-index.z >current &&
+       perl -pe "y/\000/\012/" <diff-index.z >current &&
        test_cmp expected current
 '
 
@@ -116,7 +117,7 @@ test_expect_success 'diff-tree -z does not quote funny filename' '
        tabs    ," (dq) and spaces
        EOF
        git diff-tree -z --name-status $t0 $t1 >diff-tree.z &&
-       "$PERL_PATH" -pe y/\\000/\\012/ <diff-tree.z >current &&
+       perl -pe y/\\000/\\012/ <diff-tree.z >current &&
        test_cmp expected current
 '