From ea705257447c0234ede309f05345858934572605 Mon Sep 17 00:00:00 2001 From: Bret Johnson Date: Wed, 23 Sep 2015 02:15:37 -0400 Subject: [PATCH] Added a .gitattributes file, ensuring that Bash script source files (gradlew and *.sh) have normal Unix LF line endings even on Windows. This change is needed so gradlew, packager.sh, and other Bash scripts can run on Windows (under cygwin). On Windows the rest of the source files will typically have CR+LF endings (Git default), but Bash scripts need to have LF endings to work, thus this override to force that. --- .gitattributes | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..8f9372e00 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +# Force LF line endings for Bash scripts. On Windows the rest of the source +# files will typically have CR+LF endings (Git default on Windows), but Bash +# scripts need to have LF endings to work (under Cygwin), thus override to force +# that. +gradlew text eol=lf +*.sh text eol=lf