ignore images line ending on older git versions

On Ubuntu 16.04 git 2.7.4 tries to fix the line ending of .png and .ico
files, and obviously it ruins them. This commit adds an attribute to
those files to properly mark them as binary.
This commit is contained in:
Pietro Albini 2019-01-23 11:54:23 +01:00
parent 6bba352cad
commit 645b7c2c36
No known key found for this signature in database
GPG Key ID: 3E06ABE80BAAF19C
1 changed files with 4 additions and 0 deletions

4
.gitattributes vendored
View File

@ -9,3 +9,7 @@ src/etc/installer/gfx/* binary
*.woff binary
src/vendor/** -text
Cargo.lock -merge linguist-generated=false
# Older git versions try to fix line endings on images, this prevents it.
*.png binary
*.ico binary