I am using git svn and today I ran into some trouble.
I did an git svn clone
and worked on my project for a while. After a few days, I've pushed my work to the svn remote (git svn dcommit
). Then I've tried to checkout the project with TortoiseSVN and see if everything is right. Unfortunately, everything was converted to Unix line endings, and VC6 failed to open the project.
So, my git working copy was CRLF, but my svn working copy was LF. I'm assuming git converted it either during git commit
or git svn dcommit
.
Am I right to assume that I can avoid all this trouble if I set core.autocrlf = false
for my git working copy? Will this force git to leave newlines alone? Is there anything else that needs to be done to make git svn easy to use without causing problems for my coworkers?
(It may also be interesting to mention that I have used git svn on the same machine before, without touching the settings, and this was the first time something like this happened.)