t0027: squelch checkout path run outside test_expect_* block
authorJunio C Hamano <gitster@pobox.com>
Tue, 20 Nov 2018 03:43:24 +0000 (12:43 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Nov 2018 03:43:24 +0000 (12:43 +0900)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0027-auto-crlf.sh
index beb5927f77f7f21456eef2835ee67402e487a899..3587e454f19d9bf71f2b02c9189d4715ed216fd9 100755 (executable)
@@ -293,9 +293,9 @@ checkout_files () {
        do
                rm crlf_false_attr__$f.txt &&
                if test -z "$ceol"; then
-                       git checkout crlf_false_attr__$f.txt
+                       git checkout -- crlf_false_attr__$f.txt
                else
-                       git -c core.eol=$ceol checkout crlf_false_attr__$f.txt
+                       git -c core.eol=$ceol checkout -- crlf_false_attr__$f.txt
                fi
        done