Force core.autocrlf=false for these tests. Most of these tests are checking for whitespace differences and so are not simple to fix. The rest are not clear how to fix. Signed-off-by: Don Slutz <Don.Slutz@xxxxxxxxxxxxxxxxxx> --- t/t1002-read-tree-m-u-2way.sh | 3 ++- t/t4015-diff-whitespace.sh | 2 ++ t/t4019-diff-wserror.sh | 1 + t/t4116-apply-reverse.sh | 1 + t/t4200-rerere.sh | 2 ++ 5 files changed, 8 insertions(+), 1 deletions(-) diff --git a/t/t1002-read-tree-m-u-2way.sh b/t/t1002-read-tree-m-u-2way.sh index 5e40cec..acc9474 100755 --- a/t/t1002-read-tree-m-u-2way.sh +++ b/t/t1002-read-tree-m-u-2way.sh @@ -37,7 +37,8 @@ check_cache_at () { test_expect_success \ setup \ - 'echo frotz >frotz && + 'git config core.autocrlf false && + echo frotz >frotz && echo nitfol >nitfol && echo bozbar >bozbar && echo rezrov >rezrov && diff --git a/t/t4015-diff-whitespace.sh b/t/t4015-diff-whitespace.sh index 6d13da3..122557e 100755 --- a/t/t4015-diff-whitespace.sh +++ b/t/t4015-diff-whitespace.sh @@ -9,6 +9,8 @@ test_description='Test special whitespace in diff engine. . ./test-lib.sh . "$TEST_DIRECTORY"/diff-lib.sh +test_expect_success "setup" 'git config core.autocrlf false' + # Ray Lehtiniemi's example cat << EOF > x diff --git a/t/t4019-diff-wserror.sh b/t/t4019-diff-wserror.sh index 84a1fe3..a580403 100755 --- a/t/t4019-diff-wserror.sh +++ b/t/t4019-diff-wserror.sh @@ -6,6 +6,7 @@ test_description='diff whitespace error detection' test_expect_success setup ' + git config core.autocrlf false && git config diff.color.whitespace "blue reverse" && >F && git add F && diff --git a/t/t4116-apply-reverse.sh b/t/t4116-apply-reverse.sh index 2298ece..a846be6 100755 --- a/t/t4116-apply-reverse.sh +++ b/t/t4116-apply-reverse.sh @@ -11,6 +11,7 @@ test_description='git apply in reverse test_expect_success setup ' + git config core.autocrlf false && for i in a b c d e f g h i j k l m n; do echo $i; done >file1 && perl -pe "y/ijk/\\000\\001\\002/" <file1 >file2 && diff --git a/t/t4200-rerere.sh b/t/t4200-rerere.sh index a6bc028..5e6cc82 100755 --- a/t/t4200-rerere.sh +++ b/t/t4200-rerere.sh @@ -8,6 +8,8 @@ test_description='git rerere . ./test-lib.sh +git config core.autocrlf false + cat > a1 << EOF Some title ========== -- 1.6.3.15.g49878 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html