mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-28 12:46:41 +08:00
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`.
This commit is contained in:
+3
-6
@@ -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
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user