git send-email duplicating messages?

From: Sam Hansen
Date: Wed Apr 25 2018 - 13:31:36 EST


Greetings,

I have been sending patches out like:

$ git send-email --to=foo-list@xxxxxxxxxxxxxxx \
--cc-cmd='scripts/get_maintainer.pl -non -norolestats' \
*.patch

For some reason, when git sends the emails, it sends each patch both
directly to, and also cc's, everyone mentioned by get_maintainer.pl.
So, everyone gets duplicate messages. The get_maintainer.pl script,
when run manually, does not produce duplicate entries.

Has anyone run across this before? I'd like to do the right thing,
but don't exactly know what I'm doing wrong. Thanks.