From dfadd05fc9f28e7dc62ce65663bb7b2f4d88bcf2 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Thu, 19 Feb 2026 15:39:05 -0500 Subject: [PATCH] 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` step in precommit redundant, so remove it. --- .gitattributes | 1 + .github/workflows/precommit.yml | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fa1385d --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* -text diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml index 9bb7e9f..2fa1efb 100644 --- a/.github/workflows/precommit.yml +++ b/.github/workflows/precommit.yml @@ -53,10 +53,6 @@ jobs: - name: Add safe git directory 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