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

Re: Ad: fast-import problem importing dos format files under cygwin

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Dec 3, 2008, 12:18 UTC
Message-ID
<49367909.8070605@viscovery.net>
In-Reply-To
<43270.194.138.12.144.1228295417.squirrel@artax.karlin.mff.cuni.cz>
Jan Hudec schrieb:
Show 15 quoted lines
> On 3 December 2008, 08:51, Jan Hudec wrote:
>> Hello folks,
>>
>> I have been playing with fast-import in cygwin and I have problems
>> importing files with CR/LF line-endings. The size in data command is
>> calculated including the CRs and than the file is copied binary to the
>> fast-import input stream. However fast-import skips the CRs when reading,
>> overreads by that number of bytes and fails when it tries to read the
>> next command from the middle.
> 
> One addition:
> 
> I have tried with MSYS version 1.5.6.1.1071.g76fb and it imported the
> test, as it was, except it didn't like 'refs/heads/master' as branchname
> (and accepted bare 'master', but that created '.git/master').

With my current version of MinGW git the import is successful after I edited test1.gfi to match your description (it had CR on all lines; I removed all except on lines 15 and 16). The repository content is as one would it expect given the input. master is b8ad21c3dc271d43a6e43c261909d6be725fa5b8.

Do you happen to have core.autocrlf set in some way and could it make a difference for fast-import? I have it unset.

-- Hannes
Previous: Jan HudecNext: Jan Hudec
Message 3 of 7 in “fast-import problem importing dos format files under cygwin”
  1. Jan HudecDec 3, 2008
  2. Ad: fast-import problem importing dos format files under cygwinJan Hudec, Dec 3, 2008
  3. Johannes SixtDec 3, 2008
  4. Jan HudecDec 3, 2008
  5. Shawn O. PearceDec 3, 2008
  6. Johannes SchindelinDec 3, 2008
  7. Jan HudecDec 3, 2008

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.