Skip to content

Commit 1124407

Browse files
jkwak-workcsyonghe
andauthored
Do not add carrage return to shell scripts (shader-slang#4811)
This commit prevents GIT from adding carrage return characters to shell script files whose file extension is ".sh". Currently git automatically adds a carrage return characters to all lines in text files, which makes them Windows text file. This causes a trouble when a shell script is submitted and it is ran on WSL, because bash on WSL expects the script files in a unix text file format. Co-authored-by: Yong He <yonghe@outlook.com>
1 parent bbef25c commit 1124407

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# indicate generated files so they don't appear in GitHub diffs
22
*.slang.cpp linguist-generated
3+
4+
# Set the line endings to LF for shell scripts
5+
*.sh text eol=lf

0 commit comments

Comments
 (0)