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

git-svn and auto crlf convertion.

From
ALAlexander Litvinov <litvinov2004@gmail.com>
Date
Oct 31, 2007, 04:49 UTC
Message-ID
<200710311049.43861.litvinov2004@gmail.com>
Hello.

I have private svn repo with cpp source file in windows encoding (\r\n line ending). I am tring to import it into git using git-svn. To make correct crlf convertion I have made git svn init first then create correct .git/info/attributes file and import repo using git svn fetch command. But after import done I have strange situation: after git checkout -f master git status show that almost all text files are modified.

As I understand situation git-svn put \r\n encoded files into repo without convertng them to \n notation. git-checkout,git-status does the job right and found 'modification' as far as they do the needed convertion.

Is there any way to configure git-svn to make proper convertion or it is broken and need to be fixed ?

Next: Eric Wong
Message 1 of 2 in “git-svn and auto crlf convertion.”
  1. Alexander LitvinovOct 31, 2007
  2. Eric WongOct 31, 2007

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.