git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-svn and core.autocrlf on windows

From
Eyvind Bernhardsen <eyvind.bernhardsen@gmail.com>
Date
Jun 29, 2010, 08:32 UTC
Message-ID
<67C8E0A3-1A07-4F9E-965E-8E97C846D3D2@gmail.com>
In-Reply-To
<AANLkTin2CIla9AOt8bRVbQPgyNKhvY6LauOVRc1LqGuQ@mail.gmail.com>
On 28. juni 2010, at 19.01, MrUnleaded wrote:
Show 8 quoted lines
> 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
Previous: MrUnleaded
Message 2 of 2 in “git-svn and core.autocrlf on windows”
  1. MrUnleadedJun 28, 2010
  2. Eyvind BernhardsenJun 29, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.