mirror of
https://github.com/hathach/tinyusb.git
synced 2026-08-18 11:02:16 +00:00
gitattributes: keep shell scripts LF under core.autocrlf
With core.autocrlf=true, *.sh files were checked out / restored with CRLF line endings, which breaks bash ($'\r': command not found; set: pipefail: invalid option). Pin *.sh to eol=lf so shell scripts stay LF in the working tree regardless of autocrlf. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
3
.gitattributes
vendored
3
.gitattributes
vendored
@ -19,6 +19,9 @@
|
||||
|
||||
Makefile text
|
||||
|
||||
# Shell scripts must stay LF even when core.autocrlf=true (CRLF breaks bash)
|
||||
*.sh text eol=lf
|
||||
|
||||
# Windows-only Visual Studio things
|
||||
|
||||
*.sln text eol=crlf
|
||||
|
||||
Reference in New Issue
Block a user