From f6a1a3bbd1b7d5e90aad30eb7748b41393da0048 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sun, 27 Sep 2026 15:17:34 +0200 Subject: [PATCH] chore(git): check out every text file with LF, not only Go and scripts .gitattributes forced LF only for Go, shell, generated files, snapshots and deploy YAML, so a Windows clone with core.autocrlf=true got CRLF everywhere else. On that working copy `make format-check` flags 198 frontend files, `msw-worker-check` sees mockServiceWorker.js differ from the installed copy, and TestAnalystContextNamesRealCIJobs and TestReviewNamesRealCIJobsAndGates find no ci.yml job at all, while Linux CI stays green. `* text=auto eol=lf` extends 5c5a5096 to every text file. No committed blob changes: the index already holds LF everywhere, and binary detection still leaves the 50 binary files alone. An existing Windows clone applies it with a fresh checkout on a clean tree: `git rm -rq --cached . && git reset -q --hard HEAD`. --- .gitattributes | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitattributes b/.gitattributes index 99ca66dd6..7ace50f31 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,3 @@ -*.sh text eol=lf -frontend/src/generated/** text eol=lf -frontend/public/openapi.json text eol=lf -frontend/src/test/__snapshots__/** text eol=lf -*.go text eol=lf -deploy/**/*.yaml text eol=lf \ No newline at end of file +# LF in every checkout, Windows included: format-check, the msw worker check and +# tests that parse repo files compare bytes, so a CRLF working copy fails them. +* text=auto eol=lf