Skip to content

Commit 0e92d39

Browse files
committed
.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 shell logic that reads from these files is sensitive to CRLF line endings, causing a failure when the test suite is run on a Windows machine that converts LF to CRLF: the test suite fails with a "bad hash algorithm" message, but does not record any failed test cases. This caused CI builds to pass because they fail only after reporting the failed test cases. Exclude the files in this folder from this conversion. Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
1 parent 5d826e9 commit 0e92d39

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
@@ -13,3 +13,4 @@
1313
/Documentation/gitk.txt conflict-marker-size=32
1414
/Documentation/user-manual.txt conflict-marker-size=32
1515
/t/t????-*.sh conflict-marker-size=32
16+
/t/oid-info/* eol=lf

0 commit comments

Comments
 (0)