Re: git-am: "Patch fragment without a header"
- From
Junio C Hamano <junkio@cox.net>
- Date
- Feb 7, 2006, 03:20 UTC
- Message-ID
- <7vwtg73ld7.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <43E80D23.4070007@zytor.com>
"H. Peter Anvin" <hpa@zytor.com> writes:
> git-am from git-1.1.6 refuses to apply the following two patches, > whereas patch(1) sees nothing wrong with them...
Linus would have said "Say No to MIME". I am a bit too busy right now so if you are inclined to take a look, the problem is in mailinfo.
It tries to do a limited form of MIME and fails. The problem is that it does not handle different content transfer encodings used in the same message. The first part of the multipart (log message) does this:
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printableand it then switches to:
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline; filename=klibc-add-luks-to-fstype-v2 Index: klibc/usr/kinit/fstype/fstype.c
===================================================================
--- .....in the second part. The mailinfo splits them alright but it still thinks it needs to help with quoted printable, and ends up eating these ===== marks and spitting out garbage.