Git development
 help / color / mirror / Atom feed
* Failed binary detection.
@ 2007-12-21 19:50 David Brown
  2007-12-21 23:00 ` Dmitry V. Levin
  2007-12-21 23:02 ` Sean
  0 siblings, 2 replies; 3+ messages in thread
From: David Brown @ 2007-12-21 19:50 UTC (permalink / raw)
  To: Git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Failed binary detection.
  2007-12-21 19:50 Failed binary detection David Brown
@ 2007-12-21 23:00 ` Dmitry V. Levin
  2007-12-21 23:02 ` Sean
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry V. Levin @ 2007-12-21 23:00 UTC (permalink / raw)
  To: Git

[-- Attachment #1: Type: text/plain, Size: 741 bytes --]

On Fri, Dec 21, 2007 at 11:50:19AM -0800, David Brown wrote:
> 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?

See discussion of this issue in git archives, e.g.
http://marc.info/?t=119652720900002


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Failed binary detection.
  2007-12-21 19:50 Failed binary detection David Brown
  2007-12-21 23:00 ` Dmitry V. Levin
@ 2007-12-21 23:02 ` Sean
  1 sibling, 0 replies; 3+ messages in thread
From: Sean @ 2007-12-21 23:02 UTC (permalink / raw)
  To: David Brown; +Cc: Git

On Fri, 21 Dec 2007 11:50:19 -0800
David Brown <git@davidb.org> wrote:

> 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'.
> 

Dave,

Telling Git that the file is binary is likely all you need to do.  Something
like the following line in a .gitattributes file:

filename -diff

For more info see "man gitattributes".

HTH,
Sean

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-21 23:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-21 19:50 Failed binary detection David Brown
2007-12-21 23:00 ` Dmitry V. Levin
2007-12-21 23:02 ` Sean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox