threads / discuss / 3616

git-applymbox fails to extract patch.

Subject: git-applymbox fails to extract patch.

## tl;dr

3 messages between Mar 10, 2006 and Mar 10, 2006.

replies: 2people: 2as markdown or json

Dave Jones· Mar 10, 2006, 05:04 UTC · lore

Since my munged versions of Linus' original apply-mbox scripts no longer work on current git, I figured I'd try and use the ones provided with it.

I'm totally confused as to what's going on here.

Here's what I'm trying to apply.. http://userweb.kernel.org/~davej/mbox.txt

And here's what happens..

(04:59:42:davej@hera:cpufreq)$ git-applymbox -k ~/Mail/mbox 1 patch(es) to process.

Applying ''
fatal: No changes
What am I missing ?
		Dave
Linus Torvalds· Mar 10, 2006, 05:35 UTC · re: Dave Jones · lore

Re: git-applymbox fails to extract patch.

On Fri, 10 Mar 2006, Dave Jones wrote:
> 
> What am I missing ?

Do you have "Content-Type:" headers with a multi-part boundary? That can cause it.

Also, empty X-IMAP messages at the beginning of a mbox (pine does those, others probably do too) will cause things like that. The extra "email" will have no patch in it..

		Linus
Dave Jones· Mar 10, 2006, 05:47 UTC · re: Linus Torvalds · lore

Re: git-applymbox fails to extract patch.

On Thu, Mar 09, 2006 at 09:35:11PM -0800, Linus Torvalds wrote:
 > 
 > 
 > On Fri, 10 Mar 2006, Dave Jones wrote:
 > > 
 > > What am I missing ?
 > 
 > Do you have "Content-Type:" headers with a multi-part boundary? That can 
 > cause it.

ahhh. I was sent a MIME mail, and saved the attachment, then deleted the junk from the body, and inlined it. Never crossed my mind to check the headers. That'll be it.

Now I remember why I hate hand-munging mails.
*snip snip*

$ git-applymbox -k ~/Mail/mbox 1 patch(es) to process.

Applying '[CPUFREQ] Fix the p4-clockmod N60 errata workaround.'
Wrote tree 6d7d2dfd2309675446f727a6b4b2a6ff475835fb
Committed: 6d373ea012b2974e627b9ee830e75cf3bf3c4c24
Sweet. I'm happy again.
Thanks,
		Dave
-- 
http://www.codemonkey.org.uk

← back to recent threads