From c087697fdedacae1919c99b026884e73777fd472 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 18 Oct 2019 11:56:18 +0200 Subject: [PATCH] Ensure line endings for binary files are not modified in Git This commit is necessary in order to upgrade the Gradle wrapper, since the recent attempt to do so ended up in a corrupted JAR file for the Gradle wrapper. --- .gitattributes | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitattributes b/.gitattributes index fddb8adb39..b2d7a64ef1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,3 +3,14 @@ # Ensure that line endings for multipart files in spring-web are not modified. *.multipart -text + +# Ensure that line endings for DOS batch files are not modified. +*.bat -text + +# Ensure the following are treated as binary. +*.gif binary +*.jar binary +*.jpeg binary +*.jpg binary +*.png binary +*.vsd binary