From 216c5c4893ba52916c31671321040596c2d3c99d Mon Sep 17 00:00:00 2001 From: Rob Hogan Date: Fri, 30 Dec 2022 03:31:23 -0800 Subject: [PATCH] Add .gitattributes for LF line endings on Windows 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 --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..d157c5c938 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Integration tests require LF line endings +* text=auto eol=lf