Skip to content

Disable git text conversion via .gitattributes, remove CI workarounds#135

Merged
emlowe merged 1 commit intoChia-Network:mainfrom
altendky:disable-git-text-conversion
Mar 4, 2026
Merged

Disable git text conversion via .gitattributes, remove CI workarounds#135
emlowe merged 1 commit intoChia-Network:mainfrom
altendky:disable-git-text-conversion

Conversation

@altendky
Copy link
Contributor

Summary

  • Add * -text to .gitattributes to disable git's automatic line-ending conversion for all files
  • Remove the now-redundant git config --global core.autocrlf false CI step from pre-commit.yml

Context

Same change as Chia-Network/chia-blockchain#20514. The .gitattributes attribute takes precedence over core.autocrlf, so the CI workaround step is no longer needed — and the protection extends to all contributors' local environments too, not just CI.

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.
@emlowe emlowe merged commit 1ede12a into Chia-Network:main Mar 4, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants