git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] Asks for "To" even if "To" already specified in letter
@ 2023-12-30  3:20 Askar Safin
  2024-01-02 22:23 ` Taylor Blau
  0 siblings, 1 reply; 2+ messages in thread
From: Askar Safin @ 2023-12-30  3:20 UTC (permalink / raw)
  To: git

Hi. I found a bug. Steps to reproduce:
- Create file /tmp/m with following text:
===
Subject: subj
To: example@example.com

text
===
- Send it using command "git send-email /tmp/m"

You will see that git asks for "To". git says: "To whom should the
emails be sent (if anyone)?"
I don't like this. git should just use "To" from /tmp/m without asking.

Seen with git 2.43.0.

If I execute "git send-email --to-cmd='#' /tmp/m" or
"git send-email --to-cmd=':' /tmp/m" or
"git send-email --to-cmd='true' /tmp/m", then "To" is not asked.

Same happens when I send one single patch without cover letter. Steps
to reproduce:
- Clone some repo
- Make some (single) commit
- Execute in the repo "git send-email --annotate HEAD^"
- Editor will be spawned. Add header "To: example@example.com", then
save and exit from the editor

You will see the question "To whom should the emails be sent (if
anyone)?", too. And again you can workaround using --to-cmd tricks.

-- 
Askar Safin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-02 22:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-30  3:20 [BUG] Asks for "To" even if "To" already specified in letter Askar Safin
2024-01-02 22:23 ` Taylor Blau

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).