* [ISSUE] git send-email sends wrong patches and non-provided CC (probably bug) @ 2008-03-06 9:11 Imran M Yousuf 2008-03-06 10:19 ` Junio C Hamano 0 siblings, 1 reply; 4+ messages in thread From: Imran M Yousuf @ 2008-03-06 9:11 UTC (permalink / raw) To: Git Mailing List; +Cc: Junio C Hamano Hi, Firstly sorry to gitster as he probably has received 10 redundant emails from me of my own patch, which I sent for test purpose before sending to the mailing list. In this process actually I found 2 issues: 1. git send-email sends CC to gitster though his email is not mentioned. 2. I wanted to send patches from a folder containing 3 patches generated with 'git format-patch -n -o /output/dir/ -M -B origin' command. When I use git send-email it rather sends 5 email; 3 for PATCH 3/3 with same subject but different body. I later generated them without -n option and sent to the mailing list and that was sent correctly. Unfortunately gitster has 13 emails of the same content out of 10 are outcomes of the bug. I am providing their message id so that he can have a look at them: Message-Id: <1204793490-20160-5-git-send-email-imyousuf@gmail.com> Message-Id: <1204788919-23615-3-git-send-email-imyousuf@gmail.com> If someone else wants to have a look at the problem I can also email it to him :). -- Imran M Yousuf Entrepreneur & Software Engineer Smart IT Engineering Dhaka, Bangladesh Email: imran@smartitengineering.com Mobile: +880-1711402557 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ISSUE] git send-email sends wrong patches and non-provided CC (probably bug) 2008-03-06 9:11 [ISSUE] git send-email sends wrong patches and non-provided CC (probably bug) Imran M Yousuf @ 2008-03-06 10:19 ` Junio C Hamano 2008-03-06 11:19 ` Imran M Yousuf 0 siblings, 1 reply; 4+ messages in thread From: Junio C Hamano @ 2008-03-06 10:19 UTC (permalink / raw) To: Imran M Yousuf; +Cc: Git Mailing List "Imran M Yousuf" <imyousuf@gmail.com> writes: > 1. git send-email sends CC to gitster though his email is not mentioned. Check your config first. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ISSUE] git send-email sends wrong patches and non-provided CC (probably bug) 2008-03-06 10:19 ` Junio C Hamano @ 2008-03-06 11:19 ` Imran M Yousuf 2008-03-08 5:14 ` Junio C Hamano 0 siblings, 1 reply; 4+ messages in thread From: Imran M Yousuf @ 2008-03-06 11:19 UTC (permalink / raw) To: Junio C Hamano; +Cc: Git Mailing List On Thu, Mar 6, 2008 at 4:19 PM, Junio C Hamano <gitster@pobox.com> wrote: > "Imran M Yousuf" <imyousuf@gmail.com> writes: > > > 1. git send-email sends CC to gitster though his email is not mentioned. > > Check your config first. Can someone help me where I can find it in the config? because I surely did not make any change to config of GIT project. I would be grateful for the help. Best regards, Imran > -- Imran M Yousuf Entrepreneur & Software Engineer Smart IT Engineering Dhaka, Bangladesh Email: imran@smartitengineering.com Mobile: +880-1711402557 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ISSUE] git send-email sends wrong patches and non-provided CC (probably bug) 2008-03-06 11:19 ` Imran M Yousuf @ 2008-03-08 5:14 ` Junio C Hamano 0 siblings, 0 replies; 4+ messages in thread From: Junio C Hamano @ 2008-03-08 5:14 UTC (permalink / raw) To: Imran M Yousuf; +Cc: Git Mailing List, David Brown "Imran M Yousuf" <imyousuf@gmail.com> writes: > On Thu, Mar 6, 2008 at 4:19 PM, Junio C Hamano <gitster@pobox.com> wrote: >> "Imran M Yousuf" <imyousuf@gmail.com> writes: >> >> > 1. git send-email sends CC to gitster though his email is not mentioned. >> >> Check your config first. > > Can someone help me where I can find it in the config? because I > surely did not make any change to config of GIT project. I would be > grateful for the help. In $HOME/.gitconfig and $GIT_DIR/config, sendemail.{to,cccmd,bcc} . Running "git send-email --dry-run $your_command_line_args $files" may tell you where the recipients list are picked up from. IIRC, the command picks up addresses on Signed-off-by: lines too, which needs to be explicitly squelched with --suppress-cc=all and/or friends. One irritating pitfall is that --suppress-cc=<cccmd,cc,self,author,sob> takes lower precedence than others; especially, even the command line --suppress-cc=all is countermanded by configured sendemail.suppressfrom and sendemail.signedoffcc. Even if we ignore this "the command line should trump configured values" irritation, I think there is a bug here. # If explicit old-style ones are specified, they trump --suppress-cc. $suppress_cc{'self'} = $suppress_from if defined $suppress_from; $suppress_cc{'sob'} = $signed_off_cc if defined $signed_off_cc; $signed_off_cc asks for cc, so I think the second line should invert its logic. -- >8 -- send-email: --no-signed-off-cc should suppress 'sob' cc The logic to countermand suppression of Cc to the signers with a more explicit --signed-off-by option done in 6564828 (git-send-email: Generalize auto-cc recipient mechanism) suffers from a double-negation error. A --signed-off-cc option, when false, should actively suppress CC: to be generated out of S-o-b lines, and it should refrain from suppressing when it is true. Signed-off-by: Junio C Hamano <gitster@pobox.com> --- git-send-email.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/git-send-email.perl b/git-send-email.perl index 29b1105..b3bd922 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -317,7 +317,7 @@ if ($suppress_cc{'all'}) { # If explicit old-style ones are specified, they trump --suppress-cc. $suppress_cc{'self'} = $suppress_from if defined $suppress_from; -$suppress_cc{'sob'} = $signed_off_cc if defined $signed_off_cc; +$suppress_cc{'sob'} = !$signed_off_cc if defined $signed_off_cc; # Debugging, print out the suppressions. if (0) { ^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-08 5:16 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-03-06 9:11 [ISSUE] git send-email sends wrong patches and non-provided CC (probably bug) Imran M Yousuf 2008-03-06 10:19 ` Junio C Hamano 2008-03-06 11:19 ` Imran M Yousuf 2008-03-08 5:14 ` Junio C Hamano
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).