Note that there are some explanatory texts on larger screens.

plurals
  1. POCan git-svn be made to handle CRLF like native subversion clients?
    text
    copied!<p>I have a subversion repository hosted on Linux but only ever accessed via windows clients as it's for the source of a large Windows application.</p> <p>It would be awesome if I could work on this repository using git-svn (provided by msysgit).</p> <p>I'm having a heck of a time trying to get the repository to not get itself in a jam over the windows style line endings.</p> <p>After <code>svn clone</code> a checkout of the git repository with: </p> <ul> <li><code>core.autocrlf = true</code> shows modifications to any file which actually does use <code>LF</code> in the repository.</li> <li><code>core.autocrlf = input</code> shows modifications to any file which actually does use <code>LF</code> in the repository.</li> <li><code>core.autocrlf = false</code> shows modifications to everything.</li> </ul> <p>What's the best option here? Should I use <code>core.autocrlf = true</code> and commit the <code>LF</code> to <code>CRLF</code> changes for affected files?</p> <p>I'm very close to throwing in the towel and just putting my Subversion working copy into a git repository. This would be a poor solution but would at least allow local branches and stashes. It will obviously become a huge pain to keep adding files when they are added to subversion.</p> <p><strong>EDIT:</strong> For those who are interested. <code>git-svn</code> is a royal pain if you are on Windows. hasen j's answer below is probably the right one but I can't follow his advice without attracting the ire of the other developers in my team.</p> <p>I'm essentially abandoning this question since it isn't going to lead to a reasonable outcome. Hopefully the next Google Summer of Code will attract someone who wants to pickup their "Proper git-svn support on Windows" project. See <a href="http://git.or.cz/gitwiki/SoC2009Ideas#Propergit-svnsupportonWindows" rel="noreferrer">http://git.or.cz/gitwiki/SoC2009Ideas#Propergit-svnsupportonWindows</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload