Skip to content

Commit

Permalink
Add .gitattributes to ensure all shell scripts have LF as eol-style.
Browse files Browse the repository at this point in the history
Some Git clients on Windows may use CRLF otherwise, which effectively prevents running such scripts.
  • Loading branch information
lanurmi committed Jan 31, 2016
1 parent 1617728 commit 8708d8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# On Windows, some Git clients may normalize all text files' line-endings to
# CRLF, which causes obscure errors when running shell scripts.
*.sh eol=lf

0 comments on commit 8708d8d

Please sign in to comment.