Disable git text conversion via .gitattributes, remove CI workarounds (#20514)

disable git text conversion via .gitattributes, remove CI workarounds

Add `* -text` to .gitattributes to prevent git from performing any
line-ending conversion on any file. This makes the per-workflow
`git config --global core.autocrlf false` steps in test-single and
pre-commit redundant, so remove them.
This commit is contained in:
Kyle Altendorf
2026-02-19 17:50:54 -06:00
committed by GitHub
parent 65e29516ee
commit 23b969e2a9
3 changed files with 1 additions and 8 deletions
+1
View File
@@ -1,2 +1,3 @@
.git_archival.txt export-subst
**/*.lock linguist-generated=false
* -text
-4
View File
@@ -62,10 +62,6 @@ jobs:
- uses: Chia-Network/actions/git-mark-workspace-safe@main
- name: disable git autocrlf
run: |
git config --global core.autocrlf false
- uses: actions/checkout@v6
with:
fetch-depth: 0
-4
View File
@@ -133,10 +133,6 @@ jobs:
BLOCKS_AND_PLOTS_VERSION: 0.45.3
steps:
- name: Configure git
run: |
git config --global core.autocrlf false
- name: Checkout code
uses: actions/checkout@v6
with: