summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2013-06-05 18:10:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-06-05 19:26:43 (GMT)
commit5e3ee39df2be5712dbff5a7cbca94d35ea56990c (patch)
tree42f7412bf84cc4b5419ef7aaaad9d0a074484821 /git-send-email.perl
parent5adcf2c69989884ad6c51df0f9ad5e68f6a3f650 (diff)
downloadgit-5e3ee39df2be5712dbff5a7cbca94d35ea56990c.zip
git-5e3ee39df2be5712dbff5a7cbca94d35ea56990c.tar.gz
git-5e3ee39df2be5712dbff5a7cbca94d35ea56990c.tar.bz2
send-email: fix suppress-cc=self on cccmd
When cccmd is used, old-style suppress-from filter is applied by the newer suppress-cc=self isn't. Fix this up. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 70cad15..d834436 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -1446,7 +1446,7 @@ sub recipients_cmd {
$address =~ s/^\s*//g;
$address =~ s/\s*$//g;
$address = sanitize_address($address);
- next if ($address eq $sanitized_sender and $suppress_from);
+ next if ($address eq $sanitized_sender and $suppress_cc{'self'});
push @addresses, $address;
printf("($prefix) Adding %s: %s from: '%s'\n",
$what, $address, $cmd) unless $quiet;