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

[BUG] git-send-email hangs when sendemail.suppresscc is set without sendemail.confirm

From
SZSiwei Zhang <oss@fourdim.xyz>
Date
Apr 15, 2026, 18:46 UTC
Message-ID
<818da18e-f928-4473-8a37-28a737dbb261@app.fastmail.com>

When sendemail.suppresscc is configured (e.g., suppresscc=bodycc) but sendemail.confirm is not explicitly set, git-send-email hangs indefinitely after processing the patch headers.

Steps to reproduce:
 
    git config sendemail.suppresscc bodycc
    # Ensure sendemail.confirm is NOT set
    git config --unset sendemail.confirm
    git send-email --to="someone@example.com" HEAD^
 
Expected: email is sent (or a confirmation prompt appears)
Actual: process hangs indefinitely after printing "Adding cc:" lines
 
Workaround: explicitly set sendemail.confirm:
 
    git config sendemail.confirm always
 
Tested with git 2.53.0

Best, Siwei

Next: Siwei Zhang
Message 1 of 2 in “[BUG] git-send-email hangs when sendemail.suppresscc is set without sendemail.confirm”
  1. Siwei ZhangApr 15, 2026
  2. Siwei ZhangApr 15, 2026

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.