summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorLauri Nurmi <lanurmi@iki.fi>2016-01-31 20:49:59 +0200
committerLauri Nurmi <lanurmi@iki.fi>2016-01-31 20:49:59 +0200
commit8708d8da49d68057ee8f32e64415c7109d237bd7 (patch)
treeed90fe9f2396526c1d828520dbf956a0703471ef /.gitattributes
parent161772892f5525f5565a2e00fe1181adbc5c3976 (diff)
downloadirssi-8708d8da49d68057ee8f32e64415c7109d237bd7.zip
Add .gitattributes to ensure all shell scripts have LF as eol-style.
Some Git clients on Windows may use CRLF otherwise, which effectively prevents running such scripts.
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes3
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..e1ae7d9d
--- /dev/null
+++ b/.gitattributes
@@ -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