]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t4019-diff-wserror.sh
Merge branch 'en/fetch-negotiation-default-fix'
[thirdparty/git.git] / t / t4019-diff-wserror.sh
index c68729ac098401c16c2d7d232dec35d56e545846..d2b3109c2d37445f2f3cf9b892df67f7519191ff 100755 (executable)
@@ -287,9 +287,9 @@ test_expect_success 'do not color trailing cr in context' '
 '
 
 test_expect_success 'color new trailing blank lines' '
-       { echo a; echo b; echo; echo; } >x &&
+       test_write_lines a b "" "" >x &&
        git add x &&
-       { echo a; echo; echo; echo; echo c; echo; echo; echo; echo; } >x &&
+       test_write_lines a "" "" "" c "" "" "" "" >x &&
        git diff --color x >output &&
        cnt=$($grep_a "${blue_grep}" output | wc -l) &&
        test $cnt = 2