Skip to content

Commit

Permalink
ignore images line ending on older git versions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pietroalbini committed Jan 23, 2019
1 parent 6bba352 commit 645b7c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 645b7c2

Please sign in to comment.