Skip to content

Commit

Permalink
Add .gitattributes for LF line endings on Windows
Browse files Browse the repository at this point in the history
Summary:
When cloning the Metro repo on Windows with default git settings, the working copy will be created with CRLF endings.

This breaks integration tests expecting particular file sizes. With `.gitattributes` we can ensure that LF endings are retained.

Reviewed By: motiz88

Differential Revision: D42266712

fbshipit-source-id: b9628565e21f194e0dccaf847bf1b974755b41cd
  • Loading branch information
robhogan authored and facebook-github-bot committed Dec 30, 2022
1 parent 736de64 commit 216c5c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Integration tests require LF line endings
* text=auto eol=lf

0 comments on commit 216c5c4

Please sign in to comment.