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.
This commit is contained in:
Sam Brannen 2019-10-18 11:56:18 +02:00
parent 9e066e5272
commit c087697fde
1 changed files with 11 additions and 0 deletions

11
.gitattributes vendored
View File

@ -3,3 +3,14 @@
# Ensure that line endings for multipart files in spring-web are not modified. # Ensure that line endings for multipart files in spring-web are not modified.
*.multipart -text *.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