Adam Piatyszek
2008-01-17 10:10:28 UTC
Hi Giters,
I suspect that "git send-email" has problems with sending patches with
very long lines.
Please find the attached two emails, which show this problem. The
original file (0001-Add-Dolph-Chebyshev-window.patch) was produced with
"git format-patch" from one of my private Git repositories. The other
file (0001-Add-Dolph-Chebyshev-window-sent.patch) includes the same
patch but sent with "git send-email". The problem is with the last hunk,
which is somehow broken by the "git send-email" tool. The very long
lines are wrapped and some exclamation marks are inserted.
The result of applying such a broken patch in my repository is as follows:
===== >8 =====
***@lespaul ~/git/itpp $ git am 0001-Add-Dolph-Chebyshev-window-sent.patch
Applying Add Dolph Chebyshev window.
fatal: corrupt patch at line 126
Patch failed at 0001.
When you have resolved this problem run "git-am --resolved".
If you would prefer to skip this patch, instead run "git-am --skip".
===== >8 =====
If I send the same patch with mutt inlined or attached, the patch is not
broken and applies cleanly.
This problem was observed for the following git versions:
- 1.5.3.8
- 1.5.4.rc3.4.g1633
BR,
/Adam
PS. Email and IP addresses have been removed from the attached patches.
I suspect that "git send-email" has problems with sending patches with
very long lines.
Please find the attached two emails, which show this problem. The
original file (0001-Add-Dolph-Chebyshev-window.patch) was produced with
"git format-patch" from one of my private Git repositories. The other
file (0001-Add-Dolph-Chebyshev-window-sent.patch) includes the same
patch but sent with "git send-email". The problem is with the last hunk,
which is somehow broken by the "git send-email" tool. The very long
lines are wrapped and some exclamation marks are inserted.
The result of applying such a broken patch in my repository is as follows:
===== >8 =====
***@lespaul ~/git/itpp $ git am 0001-Add-Dolph-Chebyshev-window-sent.patch
Applying Add Dolph Chebyshev window.
fatal: corrupt patch at line 126
Patch failed at 0001.
When you have resolved this problem run "git-am --resolved".
If you would prefer to skip this patch, instead run "git-am --skip".
===== >8 =====
If I send the same patch with mutt inlined or attached, the patch is not
broken and applies cleanly.
This problem was observed for the following git versions:
- 1.5.3.8
- 1.5.4.rc3.4.g1633
BR,
/Adam
PS. Email and IP addresses have been removed from the attached patches.
--
.:. Adam Piatyszek (ediap) .:.....................................:.
.:. ***@users.sourceforge.net .:................................:.
.:. Adam Piatyszek (ediap) .:.....................................:.
.:. ***@users.sourceforge.net .:................................:.