Hunks containing the string "END{}" were being corrupted. Signed-off-by: Alan Jenkins <alan.christopher.jenkins@xxxxxxxxxxxxxx> --- guilt | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/guilt b/guilt index 51532f9..5d79e0f 100755 --- a/guilt +++ b/guilt @@ -341,7 +341,9 @@ do_get_patch() { cat "$1" | awk ' BEGIN{} -/^(diff |---$|--- )/,/END{}/ +/^(diff |---$|--- )/ {patch = 1} +patch == 1 {print $0} +END{} ' } -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html