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

Failed binary detection.

From
David Brown <git@davidb.org>
Date
Dec 21, 2007, 19:50 UTC
Message-ID
<20071221195019.GA20668@old.davidb.org>

A coworker has a branch with some large binary files (video test streams). Git doesn't seem to be detecting this file is binary, and is causing things that try to generate diffs to fail.

Specifically, he is unable to rebase his branch, getting an error:

.dotest/patch:3241:LD := ld fatal: corrupt patch at line 84682 Patch failed at 0001.

Line 84682 is in the middle of what appear to be the binary contents of the large media file, with pluses inserted after newline.

Any advice on where to look or possibly how to fix this?

I was able to work around the problem by cherry picking the change instead of using rebase. git-format-patch generates a patch that is corrupt in the same way, which fails with 'git-am'.

Thanks, Dave

Next: Dmitry V. Levin
Message 1 of 3 in “Failed binary detection.”
  1. David BrownDec 21, 2007
  2. Dmitry V. LevinDec 21, 2007
  3. SeanDec 21, 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.