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

[PATCH] git-svn: always initialize with core.autocrlf=false

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 9, 2009, 11:29 UTC
Message-ID
<560e98ae1d5350c6ff8db56d41089900dbaab08a.1239276588u.git.johannes.schindelin@gmx.de>
In-Reply-To
<cover.1239276588u.git.johannes.schindelin@gmx.de>

It has been reported time and time again in relation to msysGit that git-svn does not work well when core.autocrlf has any value other than 'false'. So let's make it so by default.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 git-svn.perl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index 8be6be0..d4e8fc8 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -325,6 +325,7 @@ sub do_git_init_db {
 		command_noisy(@init_db);
 		$_repository = Git->repository(Repository => ".git");
 	}
+	command_noisy('config', 'core.autocrlf', 'false');
 	my $set;
 	my $pfx = "svn-remote.$Git::SVN::default_repo_id";
 	foreach my $i (keys %icv) {
-- 
1.6.2.1.613.g25746
Next: Eric Wong
Message 1 of 4 in “git-svn: always initialize with core.autocrlf=false”
  1. git-svn: always initialize with core.autocrlf=falseJohannes Schindelin, Apr 9, 2009
  2. Eric WongApr 9, 2009
  3. Ferry Huberts (Pelagic)Apr 9, 2009
  4. Johannes SchindelinApr 9, 2009

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.