Aug 24 2009

svn: Inconsistent line ending style when trying to commit a binary file

Published by at 12:34 pm under SCM,Subversion / SVN

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

One response so far

One Response to “svn: Inconsistent line ending style when trying to commit a binary file”

  1. Nilesh says:

    awsome .. worked for me

Leave a Reply