Skip to content

Commit fc767af

Browse files
derrickstoleegitster
authored andcommitted
.gitattributes: ensure t/oid-info/* has eol=lf
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ae0c89d commit fc767af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
/command-list.txt eol=lf
1010
/GIT-VERSION-GEN eol=lf
1111
/mergetools/* eol=lf
12+
/t/oid-info/* eol=lf

0 commit comments

Comments
 (0)