There is this jar file which is produced locally as a result of the project build. However after it's pushed to github, it gets corrupted. Ran checksum on both local and downloaded jar files and they are different. Cannot even extract it.
Asked
Active
Viewed 1,358 times
1 Answers
3
It's probably because the line endings get converted.
Put this in your .gitattributes file (create it if it doesn't exist):
*.jar binary

thumbmunkeys
- 20,606
- 8
- 62
- 110
-
Did not work. I also tried adding "*.jar -diff" to ".gitattributes" but no luck. – Mahorad Feb 15 '15 at 17:36
-
did you diff the 2 jars? – thumbmunkeys Feb 15 '15 at 17:48
-
yes, it says "Binary files a/main_file...jar and b/downloaded_file...jar differ" – Mahorad Feb 15 '15 at 18:15
-
yes they differ obviously, but what is the first difference you can spot? – thumbmunkeys Feb 15 '15 at 19:06