From: Junio C Hamano Date: Tue, 07 Feb 2006 03:20:52 GMT Subject: Re: git-am: "Patch fragment without a header" Message-ID: <7vwtg73ld7.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <43E80D23.4070007@zytor.com> "H. Peter Anvin" 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-printable and 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.