]> git.ipfire.org Git - thirdparty/git.git/commit
t0020: don't use `test_must_fail has_cr`
authorDenton Liu <liu.denton@gmail.com>
Fri, 20 Dec 2019 18:15:53 +0000 (10:15 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Dec 2019 19:30:44 +0000 (11:30 -0800)
commitf6041abdcd7bfefed1cbe14cbe221f0e848cbec4
treef951dab8c1cac2085c9c483170368bdd5ed2d312
parentf46c243e669f5f1e6ef2f25000d5a5f593d2e1f3
t0020: don't use `test_must_fail has_cr`

The test_must_fail function should only be used for git commands since
we should assume that external commands work sanely. Since has_cr() just
wraps a tr and grep pipeline, replace `test_must_fail has_cr` with
`! has_cr`.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0020-crlf.sh