Skip to content

Commit

Permalink
Add .gitattributes file to avoid unwanted CRLF (mastodon#3954)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
danhunsaker authored and Gargron committed Jun 26, 2017
1 parent f53ed10 commit 7aeb916
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
* text=auto eol=lf
*.eot -text
*.gif -text
*.gz -text
*.ico -text
*.jpg -text
*.mp3 -text
*.ogg -text
*.png -text
*.ttf -text
*.webm -text
*.woff -text
*.woff2 -text
spec/fixtures/requests/** -text !eol

0 comments on commit 7aeb916

Please sign in to comment.