From 40ac047aeca4ee8a84341dbd8109eef8a3dafabd Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Thu, 19 Feb 2026 15:39:06 -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 pre-commit redundant, so remove it. --- .gitattributes | 1 + .github/workflows/pre-commit.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/pre-commit.yml b/.github/workflows/pre-commit.yml index fa06a3d..8cab09d 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -55,10 +55,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