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. Attached is a test input stream and crash report generated by fast-import when reading it. In case mail system damages it along the way despite being attached to prevent that, the file should be in unix format -- that is what my cygwin perl outputs by default -- and has CRs only on lines 15 and 16. The unix.txt and dos.txt should only differ that the '.'s in former are replaced by '^M's in the later (so the data commands are otherwise same). Note, that when I convert the file to dos format, it is read as intended. However, that is inconsistent with rest of the cygwin environment which generated and expects files in unix format. I use binary mounts (not converting) and CYGWIN environment variable is empty. My git version is 1.6.0.4 from official Cygwin package. Is this behaviour intentional workaround for something or a bug? -- - Jan Hudec <bulb@xxxxxx>
Attachment:
test1.gfi
Description: /
Attachment:
fast_import_crash_5212
Description: /