# git-svn and core.autocrlf on windows

2 messages from 2010-06-28 to 2010-06-29. Participants: MrUnleaded, Eyvind Bernhardsen.
Thread: https://gitlist.dev/t/24219

## MrUnleaded, 2010-06-28 17:01

Subject: git-svn and core.autocrlf on windows
Message-ID: <AANLkTin2CIla9AOt8bRVbQPgyNKhvY6LauOVRc1LqGuQ@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTin2CIla9AOt8bRVbQPgyNKhvY6LauOVRc1LqGuQ%40mail.gmail.com

```
Hello, I was wondering what the best or correct setting for
core.autocrlf would be when using git-svn to commit to a subversion
repository that is a windows project(ie CRLF line endings).

The documentation says that text documents are converted to LF line
endings in the repo. If you commit to subversion will if convert that
commit to have the line endings you have on your system? Or will it
use LF line endings regardless?

I would greatly appreciate if anyone could shed some light on this.

Thanks

-- 
Kevin

```

## Eyvind Bernhardsen, 2010-06-29 08:32

Subject: Re: git-svn and core.autocrlf on windows
Message-ID: <67C8E0A3-1A07-4F9E-965E-8E97C846D3D2@gmail.com>
URL: https://gitlist.dev/e/67C8E0A3-1A07-4F9E-965E-8E97C846D3D2%40gmail.com
In-Reply-To: <AANLkTin2CIla9AOt8bRVbQPgyNKhvY6LauOVRc1LqGuQ@mail.gmail.com>

```
On 28. juni 2010, at 19.01, MrUnleaded wrote:

> Hello, I was wondering what the best or correct setting for
> core.autocrlf would be when using git-svn to commit to a subversion
> repository that is a windows project(ie CRLF line endings).
> 
> The documentation says that text documents are converted to LF line
> endings in the repo. If you commit to subversion will if convert that
> commit to have the line endings you have on your system? Or will it
> use LF line endings regardless?

"core.autocrlf=false" is the safest setting, but according to this thread:

	http://kerneltrap.com/mailarchive/git/2010/3/4/24918/thread

git-svn works with core.autocrlf now.  The fix was included in git 1.7.1.

To answer your question, you will end up with the correct line endings in your Subversion repository if the svn:eol-style property is set to "native" for all text files, regardless of how git is configured.  If the property is not set, you should turn off autocrlf.
-- 
Eyvind

```
