Skip to content

Commit 7aeb916

Browse files
danhunsakerGargron
authored andcommittedJun 26, 2017
Add .gitattributes file to avoid unwanted CRLF (mastodon#3954)
When Windows checks out files, it defaults to changing line endings to CRLF. If these files are then copied to a Linux system to be run, and the endings aren't changed at some point in that process, things break. This file forces git to use LF for all text files on all systems (except the request testing specfiles) to prevent issues everywhere.
1 parent f53ed10 commit 7aeb916

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 

‎.gitattributes

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
* text=auto eol=lf
2+
*.eot -text
3+
*.gif -text
4+
*.gz -text
5+
*.ico -text
6+
*.jpg -text
7+
*.mp3 -text
8+
*.ogg -text
9+
*.png -text
10+
*.ttf -text
11+
*.webm -text
12+
*.woff -text
13+
*.woff2 -text
14+
spec/fixtures/requests/** -text !eol

0 commit comments

Comments
 (0)
Please sign in to comment.