Skip to content

Commit 079563e

Browse files
authored
Fix .gitattributes to correctly handle binary files (#2839)
<!-- Reference any GitHub issues resolved by this PR --> Closes # Binary files should be excluded from line-ending normalization. In the current state, git is trying to normalize binary files that do not have eol char (and never had). This causes a newly cloned repo to have all binary files unstaged with warning `CRLF will be replaced by LF the next time Git touches it`. It may cause confusion in the upcoming hackathon. ## Introduced changes <!-- A brief description of the changes --> - ## Checklist <!-- Make sure all of these are complete --> - [x] Linked relevant issue - [x] Updated relevant documentation - [x] Added relevant tests - [x] Performed self-review of the code - [x] Added changes to `CHANGELOG.md`
1 parent 44563cf commit 079563e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
*.* text eol=lf
2+
*.png -text
3+
*.jpg -text
4+
*.gif -text

0 commit comments

Comments
 (0)