svn: Inconsistent line ending style when trying to commit a binary file
If you get this error message “svn: Inconsistent line ending style” when trying to commit a binary file into your SVN repository then Subversion probably thinks that your file is a text file.
First verify your file with:
svn proplist <your-file>
If the result contains svn:eol-style but you know that your file is a binary file then you have a problem where Subversion thinks the file is a text file even though it’s not. We fix this by first deleting the erroneous properties and then adding the ones we want.
svn propdel svn:eol-style <your-file>
svn propset svn:mime-type application/octet-stream <your-file>
Verify your file again with the command below
svn proplist <your-file>
If everything worked it should say svn:mime-type
Comments
2 Comments
awsome .. worked for me
Thank you a ton for this! I’ve been trying to use svn between Mac and Windows development environments, and for some reason some of my binary files that are generated on the Mac were incorrectly assigned as text.
Leave a Comment