Skip to content

Commit 0ab83ce

Browse files
committed
Add .gitattributes to enforce LF line endings for shell scripts
- Ensure all .sh files use LF (not CRLF) for Linux compatibility - Fix CRLF line ending issues causing script failures in CI - Configure eol=lf for .sh, .py, .yaml, .md files
1 parent 6b5027a commit 0ab83ce

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.gitattributes

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Ensure shell scripts always use LF line endings
2+
*.sh text eol=lf
3+
4+
# Python files
5+
*.py text eol=lf
6+
7+
# YAML files
8+
*.yaml text eol=lf
9+
*.yml text eol=lf
10+
11+
# Markdown and documentation
12+
*.md text eol=lf
13+
14+
# Windows-specific files can use CRLF
15+
*.bat text eol=crlf
16+
*.ps1 text eol=crlf

0 commit comments

Comments
 (0)