summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMats Bengtsson <mmmats@gmail.com>2013-02-11 22:13:39 +0100
committerMats Bengtsson <mmmats@gmail.com>2013-02-11 22:13:39 +0100
commitbbf71fe363d7ac9411f37c4075bf11004c2b4e60 (patch)
tree59c9c9867910d10b96309432e923480675163072
parentcd81dd6403fc8dbe6ec5920c517d9083902c3c1f (diff)
downloadgit-repo-bbf71fe363d7ac9411f37c4075bf11004c2b4e60.tar.gz
Protect line endings in shell scripts
Add a .gitattributes file to prevent /bin/sh scripts from getting clobbered by git config core.autocrlf=true setting. Change-Id: I3dfc992a9c275fceae64c9719168d81e60d911bd
-rw-r--r--.gitattributes4
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..d65028a4
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,4 @@
1# Prevent /bin/sh scripts from being clobbered by autocrlf=true
2git_ssh text eol=lf
3main.py text eol=lf
4repo text eol=lf