Hi,

On Wed, 9 Apr 2008, Ted Dennison wrote:

>    [EMAIL PROTECTED] /c/Gittest
>    $ git fast-import
>    commit refs/heads/master
>    fatal: Branch name doesn't conform to GIT standards: refs/heads/master
>    fast-import: dumping crash report to .git/fast_import_crash_2352
> 
> The same sequence of commands seems to work fine with the Cygwin 
> version. Is this perhaps a line ending issue?

Most probable.  Could you patch fast-import.c to strip the carriage 
return?  Most likely the proper place would be read_next_command(), maybe 
these two lines at the end:

        if (command_buf.len && command_buf.buf[command_buf.len - 1] == '\r')
                strbuf_setlen(&command_buf, command_buf.len - 1);

> Also, how the heck do I send an EOF to this to get it to shut down 
> nicely? Hitting CTRL-D works with Cywgin, but doesn't seem to do 
> anything with the msys version.

Funny.  I always thought that fast-import.c was not for interactive use 
:-)  Frankly, I have no idea what to do if Ctrl+D does not work.

Ciao,
Dscho

Reply via email to