From 56dd068b93d54971ef7ba5e62d5558b8403ee724 Mon Sep 17 00:00:00 2001 From: Erik Darling <2136037+erikdarlingdata@users.noreply.github.com> Date: Thu, 18 Jun 2026 22:34:27 -0400 Subject: [PATCH] Harden .gitattributes: force LF for shell scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The repo's .gitattributes already normalizes text (`* text=auto eol=crlf`) and the tree is already normalized (`git add --renormalize .` is a no-op). Gap: with the global eol=crlf rule, a future *.sh would be checked out CRLF and fail under Git Bash, which this repo uses heavily. Add `*.sh text eol=lf`. No tracked .sh files today, so this changes nothing now — it's a latent-footgun guard. Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitattributes | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitattributes b/.gitattributes index e71a7d8d..aa168a0a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,8 @@ * text=auto eol=crlf +# Shell scripts must stay LF (this repo uses Git Bash) — CRLF breaks them. +*.sh text eol=lf + # Explicit binary markers (prevent text mis-detection / corruption): *.png binary *.jpg binary