summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2015-09-29 17:16:22 +0200
committerLars Wendler <polynomial-c@gentoo.org>2015-09-29 17:16:47 +0200
commite169d1bc34f448f086f3f731d30a84af217cb53f (patch)
treef4db70e2dc8ad2729294a14e00d6f41ee30edcc0 /dev-vcs/git/files
parentnet-analyzer/icinga2: remasking 9999 for bug 561802 (diff)
downloadgentoo-e169d1bc34f448f086f3f731d30a84af217cb53f.tar.gz
gentoo-e169d1bc34f448f086f3f731d30a84af217cb53f.tar.bz2
gentoo-e169d1bc34f448f086f3f731d30a84af217cb53f.zip
dev-vcs/git: git-send-email.perl: Fixed sending of many changes/patches
As per request from howarang. Package-Manager: portage-2.2.22 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'dev-vcs/git/files')
-rw-r--r--dev-vcs/git/files/git-2.6.0-send-email_connection_closed_fix.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-vcs/git/files/git-2.6.0-send-email_connection_closed_fix.patch b/dev-vcs/git/files/git-2.6.0-send-email_connection_closed_fix.patch
new file mode 100644
index 000000000000..11c082fa3f6c
--- /dev/null
+++ b/dev-vcs/git/files/git-2.6.0-send-email_connection_closed_fix.patch
@@ -0,0 +1,34 @@
+From edc9433aff268f4c54b36072ebad40e76dcd3aed Mon Sep 17 00:00:00 2001
+From: Stefan Agner <stefan@agner.ch>
+Date: Tue, 29 Sep 2015 16:49:46 +0200
+Subject: [PATCH] git-send-email.perl: Fixed sending of many changes/patches
+
+See http://permalink.gmane.org/gmane.comp.version-control.git/274569
+
+Reported-by: Juston Li <juston.h.li@gmail.com>
+Tested-by: Markos Chandras <hwoarang@gentoo.org>
+Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
+---
+ git-send-email.perl | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/git-send-email.perl b/git-send-email.perl
+index e3ff44b..e907e0ea 100755
+--- a/git-send-email.perl
++++ b/git-send-email.perl
+@@ -1365,7 +1365,11 @@ Message-Id: $message_id
+ $smtp->mail( $raw_from ) or die $smtp->message;
+ $smtp->to( @recipients ) or die $smtp->message;
+ $smtp->data or die $smtp->message;
+- $smtp->datasend("$header\n$message") or die $smtp->message;
++ $smtp->datasend("$header\n") or die $smtp->message;
++ my @lines = split /^/, $message;
++ foreach my $line (@lines) {
++ $smtp->datasend("$line") or die $smtp->message;
++ }
+ $smtp->dataend() or die $smtp->message;
+ $smtp->code =~ /250|200/ or die "Failed to send $subject\n".$smtp->message;
+ }
+--
+2.6.0
+