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

[msysgit? bug] CRLF in info/grafts causes parse error

From
YDYann Dirson <ydirson@linagora.com>
Date
Oct 14, 2009, 14:07 UTC
Message-ID
<ecf590a0d9e21f480529f64e465825c5.squirrel@intranet.linagora.com>

When creating an info/grafts under windows, one typically gets a CRLF file. Then:

* gitk loudly complains about "bad graft data"
* "git log > /dev/null" does not report any problem
* "git log > foo" does report the problem on sdterr, but exit code is still 0

Recreating the graft as a LF file (eg with "echo" or "printf") causes the graft to be properly interpreted.

Next: Junio C Hamano
Message 1 of 2 in “[msysgit? bug] CRLF in info/grafts causes parse error”
  1. Yann DirsonOct 14, 2009
  2. Junio C HamanoOct 14, 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.