.gitattributes: ensure t/oid-info/* has eol=lf
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 11 Dec 2018 20:35:46 +0000 (12:35 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Dec 2018 03:53:06 +0000 (12:53 +0900)
The new test_oid machinery in the test library requires reading
some information from t/oid-info/hash-info and t/oid-info/oid.

The logic to read from these files in shell uses built-in "read"
command, which leaves CR at the end of these text files when they
are checked out with CRLF line endings, at least when run with bash
shipped with Git for Windows. This results in an unexpected value
in the variable these lines are read into, leading the tests to
fail.

Mark them to be checked out always with the LF line endings.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitattributes
index 1bdc91e282c5393c527b3902a208227c19971b84..4a9e869f027680639623fd4c382469085f61efd9 100644 (file)
@@ -9,3 +9,4 @@
 /command-list.txt eol=lf
 /GIT-VERSION-GEN eol=lf
 /mergetools/* eol=lf
+/t/oid-info/* eol=lf