git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[BUG] Asks for "To" even if "To" already specified in letter

From
ASAskar Safin <safinaskar@gmail.com>
Date
Dec 30, 2023, 03:20 UTC
Message-ID
<CAPnZJGBbA1VLAdP5mZnbF77-x-87JjU3Ku2MhrQu0SFoJL7ggw@mail.gmail.com>
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
Next: Taylor Blau
Message 1 of 2 in “[BUG] Asks for "To" even if "To" already specified in letter”
  1. Askar SafinDec 30, 2023
  2. Taylor BlauJan 2, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.