Re: problem when using --cc-cmd
- From
Joe Perches <joe@perches.com>
- Date
- Apr 20, 2011, 19:48 UTC
- Message-ID
- <1303328900.24766.29.camel@Joe-Laptop>
- In-Reply-To
- <BANLkTinfbF3xyfrdgfmgHQF7RHCHk8ardw@mail.gmail.com>
On Wed, 2011-04-20 at 12:45 -0300, Thiago Farina wrote:
Show 17 quoted lines
> On Wed, Apr 20, 2011 at 12:03 AM, Joe Perches <joe@perches.com> wrote: > > On Tue, 2011-04-19 at 16:52 -0500, Jonathan Nieder wrote: > >> Thiago Farina wrote: > >> > when I run: > >> > $ git send-email --to linux-kernel@vger.kernel.org --cc-cmd > >> > scripts/get_maintainer.pl foo > >> > I'm getting some lines like: > >> > Use of uninitialized value $cc in string eq at > >> > /home/tfarina/libexec/git-core/git-send-email line 964. > >> Yes, sounds like a bug. Cc-ing some send-email people for tips. > > I haven't seen this. > > What versions of ./scripts/get_maintainer.pl and git are > > you using? > $ scripts/get_maintainer.pl --version > scripts/get_maintainer.pl 0.26 > $ git version > git version 1.7.5.rc2.5.g60e19
To get this to work properly, the output of cc-cmd (scripts/get_maintainer.pl) must be valid email addresses.
The git send-email --help for cc-cmd says:
--cc-cmd=<command>
Specify a command to execute once per patch file which should
generate patch file specific "Cc:" entries. Output of this command
must be single email address per line. Default is the value of
sendemail.cccmd configuration value.You'll need to add "--norolestats" to the cc-cmd if you use scripts/get_maintainer.pl.
$ git send-email --to linux-kernel@vger.kernel.org \ --cc-cmd "scripts/get_maintainer.pl --norolestats" foo
I suppose you could call it a defect that the output of cc-cmd isn't screened for invalid email addresses but I think it's not really a problem.