about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Hunsaker <danhunsaker@gmail.com>2017-06-26 05:15:24 -0600
committerEugen Rochko <eugen@zeonfederated.com>2017-06-26 13:15:24 +0200
commit7aeb9168b01971e4e2c4c9b757dff09638b171ac (patch)
tree7fdd1f4f5b888ea810ad0279ea2041388b6d242d
parentf53ed108b0c6218eef118bbd0b77078d36c46a96 (diff)
Add .gitattributes file to avoid unwanted CRLF (#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.
-rw-r--r--.gitattributes14
1 files changed, 14 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 000000000..e69f2a0ad
--- /dev/null
+++ b/.gitattributes
@@ -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