diff options
author | Muh Muhten <muh.muhten@gmail.com> | 2015-09-30 14:14:39 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-09-30 22:12:58 +0200 |
commit | 141968c765ce21ea6bbf0e9d5df7b70b2931c85b (patch) | |
tree | 54988a902b1f50e8f850a2fa5f821937346cbd1b /main/git/0001-senddata-16K-workaround.patch | |
parent | 7b7578a7ff4c4427d3bb00d6ef1807e14971b00d (diff) | |
download | aports-141968c765ce21ea6bbf0e9d5df7b70b2931c85b.tar.bz2 aports-141968c765ce21ea6bbf0e9d5df7b70b2931c85b.tar.xz |
main/git: unbreak send-email syntax errors
something seems to have gone wrong in the process of copy-pasting in a18cf0d.
I haven't tested this version to make sure it works, either, but at least it syntax-checks and by inspection it seems like it ought to work.
11:30 < nmeum> a18cf0d3343c487f4a6a262f0038f21d95c35b66 just broke git-send-email http://sprunge.us/TQMW could somebody with access to main/ please revert it?
Diffstat (limited to 'main/git/0001-senddata-16K-workaround.patch')
-rw-r--r-- | main/git/0001-senddata-16K-workaround.patch | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/main/git/0001-senddata-16K-workaround.patch b/main/git/0001-senddata-16K-workaround.patch index 2455b259c7..341a2a2e82 100644 --- a/main/git/0001-senddata-16K-workaround.patch +++ b/main/git/0001-senddata-16K-workaround.patch @@ -2,7 +2,7 @@ diff --git a/git-send-email.perl b/git-send-email.perl index ae9f869..b11dce8 100755 --- a/git-send-email.perl +++ b/git-send-email.perl -@@ -1347,7 +1347,15 @@ Message-Id: $message_id +@@ -1365,7 +1365,14 @@ 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; @@ -10,12 +10,11 @@ index ae9f869..b11dce8 100755 + # Apparently datasend cannot send more than about 16 and large patches + # cannot be sent. Source: + # http://git.661346.n2.nabble.com/git-send-email-Connection-Closed-td7635648.html -+ $smtp->datasend("$header\n") 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->datasend("$line") or die $smtp->message; + } -+ $message") or die $smtp->message; $smtp->dataend() or die $smtp->message; $smtp->code =~ /250|200/ or die "Failed to send $subject\n".$smtp->message; } |