Skip to content

Commit 612b207

Browse files
NotYuShengclaude
andauthored
fix: enforce LF line endings for shell scripts (#183)
* fix: enforce LF line endings for shell scripts via .gitattributes Prevents CRLF issues when cloning on Windows, which breaks shebangs and script execution in Docker containers. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix: enforce LF line endings for Python scripts too Python scripts with shebangs (e.g. sample-files/gen_demo.py) have the same CRLF breakage risk as shell scripts on Windows clones. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0dc7854 commit 612b207

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Normalize line endings on commit
2+
* text=auto
3+
4+
# Force LF for scripts with shebangs — CRLF breaks them on Linux/macOS
5+
*.sh text eol=lf
6+
*.py text eol=lf

0 commit comments

Comments
 (0)