mirror of
https://github.com/hathach/tinyusb.git
synced 2026-06-25 06:24:18 +00:00
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>
29 lines
443 B
Plaintext
29 lines
443 B
Plaintext
# Set the default behavior, in case people don't have core.autocrlf set.
|
|
* text=auto
|
|
|
|
*.c text
|
|
*.cpp text
|
|
*.h text
|
|
*.icf text
|
|
*.js text
|
|
*.json text
|
|
*.ld text
|
|
*.md text
|
|
*.mk text
|
|
*.py text
|
|
*.rst text
|
|
*.s text
|
|
*.txt text
|
|
*.xml text
|
|
*.yml text
|
|
|
|
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
|
|
*.csproj text eol=crlf
|