How should I Fix “svn: Inconsistent line ending style”


When I run "svn propedit svn:ignore ." at the root of my svn repository, I get this error:
svn: Inconsistent line ending style

I have tried to run this script: which runs dos2unix and sets the eol-style on all of the files, however this problem still persists. Any idea what could be wrong?

Best Solution

In my case, svn:eol-style property was set on a file. And "some lines of the file were separated by UNIX line endings (LF character), while others were separated by DOS-style line endings (CR+LF characters)". Here is another detailed discussion of this problem.
"Edit"->"EOL Conversion"->"Windows format" in Notepad++ solved the issue for me.