Skip to content

Commit 30612cb

Browse files
szedergitster
authored andcommitted
t0020-crlf: check the right file
In the test 'checkout with autocrlf=input' in 't0020-crlf.sh', one of the 'has_cr' checks looks at the non-existing file 'two' instead of 'dir/two'. The test still succeeds, without actually checking what it was supposed to, because this check is expected to fail anyway. As a minimal fix, fix the name of the file to be checked. Signed-off-by: SZEDER Gábor <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fd77714 commit 30612cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t0020-crlf.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ test_expect_success 'checkout with autocrlf=input' '
148148
git config core.autocrlf input &&
149149
git read-tree --reset -u HEAD &&
150150
test_must_fail has_cr one &&
151-
test_must_fail has_cr two &&
151+
test_must_fail has_cr dir/two &&
152152
git update-index -- one dir/two &&
153153
test "$one" = $(git hash-object --stdin <one) &&
154154
test "$two" = $(git hash-object --stdin <dir/two) &&

0 commit comments

Comments
 (0)