Git development
 help / color / mirror / Atom feed
* [BUG] git-send-email hangs when sendemail.suppresscc is set without sendemail.confirm
@ 2026-04-15 18:46 Siwei Zhang
  2026-04-15 19:10 ` Siwei Zhang
  0 siblings, 1 reply; 2+ messages in thread
From: Siwei Zhang @ 2026-04-15 18:46 UTC (permalink / raw)
  To: git

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

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

* Re: [BUG] git-send-email hangs when sendemail.suppresscc is set without sendemail.confirm
  2026-04-15 18:46 [BUG] git-send-email hangs when sendemail.suppresscc is set without sendemail.confirm Siwei Zhang
@ 2026-04-15 19:10 ` Siwei Zhang
  0 siblings, 0 replies; 2+ messages in thread
From: Siwei Zhang @ 2026-04-15 19:10 UTC (permalink / raw)
  To: git



On Wed, Apr 15, 2026, at 2:46 PM, Siwei Zhang wrote:
> 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

Sorry for the false bug report. 

It seems vscode credential helper didn't work properly causing the stuck. 

Meanwhile, I want to ask:

Is silently changing sendemail.confirm behaviour when sendemail.suppresscc is set appropriate?

Best,
Siwei

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

end of thread, other threads:[~2026-04-15 19:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-15 18:46 [BUG] git-send-email hangs when sendemail.suppresscc is set without sendemail.confirm Siwei Zhang
2026-04-15 19:10 ` Siwei Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox