perforce - git-p4 is eating my image files -


So, I can import from p4 using git-p4 without any problem. Everything seems to work, but my PNG files (and maybe others) are getting corrupted.

I have read about gitattributes and issues ending in line, but I do not think anything is going to change the end result. Broken images

My attribute file is: *. Png binary

Any ideas? As I have understood it, git is considered smart enough to understand that it is a binary file without a PNG help.

Is it something special that p4-git pulls files out of the way?

Update: It's on Windows, I forgot it would be important.

There is a header in the PNG file format, which is specially designed to look for programs For those who do end conversions, and not due to failure

There are 8-bytes of a PNG file: 89 50 4 E 47 0 A1A A, specially chosen because they are unix newline and windows newline - automatic programmable conversion automatically The form will invalidate PNG.

It seems that this is really a problem; And instead of thinking that Git is a problem, try to see imports from Perfors or is doing a strong translation, or it was initially checked in a corrupted situation, and any number of cloning / updating is the basic problem Will not heal


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -