From 031d7781f0f6c99e5f14e67f56cb89a88d6af3eb Mon Sep 17 00:00:00 2001 From: CmsChase Date: Sun, 11 Oct 2026 19:51:36 +0800 Subject: [PATCH] fix(build): preserve LF text checkouts on Windows (#1807) Pin text checkouts to LF so Git for Windows with core.autocrlf=true does not make the repository formatting gate fail on a clean clone. Keep command fixtures in CRLF and retain automatic binary detection. --- .gitattributes | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..1774c01137 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +# Keep text checkouts consistent with the repository formatter on every platform. +* text=auto eol=lf + +# Windows command fixtures retain their native line endings. +*.cmd text eol=crlf