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

Re: Apology/Bug report: git-send-email sends everything on Ctrl+C

From
Sam Vilain <sam@vilain.net>
Date
May 26, 2010, 08:51 UTC
Message-ID
<4BFCE12E.4070009@vilain.net>
In-Reply-To
<1274861112.2074.2.camel@wpalmer.simply-domain>
Will Palmer wrote:
Show 6 quoted lines
>> I think I must have actually hit Ctrl-Z, not Ctrl-C.  So, it's all my
>> fault and I apologize profusely.
>>     
> I'd consider anything that can make "accidentally sending 100+ patches"
> possible to be a bug. How does "it was Ctrl-Z, not Ctrl-C" make a
> difference here?
This was what I did;

on git.git next or so; I was thinking "hmm, how does git send-email format the cover letter for editing by the user? I know, I'll just check":

 $ git send-email --compose HEAD~5..

(tab around a bit, I think I hit ctrl+z because my history has "jobs" in it just after that command)

(poke around in the git-send-email source a bit)

(inspect the file it produced, oh look, HEAD~5.. matches an awful lot of commits)

(close edit window without changes)
(notice hundreds of e-mail headers being spewed out)
Ctrl+C.  nothing (it's in the background)
Ctrl+C again.  argh!  What MTA am I running?
 $ sudo /etc/init.d/postfix stop
 $ sudo /etc/init.d/exim4 stop
 $ cat .git/config

Oh no, it's going to a mail server I don't have root on. It was fully configured so it didn't need to ask any questions, just fire away. Why did I test that on my git.git checkout?

Quick, find a friendly sysadmin and mailq | grep sam.vilain | cut -d" " -f1 | sudo xargs -n1 postsuper -d

Hard to know what could have possibly stopped this from happening.  PEBKAC.
Sam
Previous: Will PalmerNext: Sverre Rabbelier
Message 4 of 8 in “Apology/Bug report: git-send-email sends everything on Ctrl+C”
  1. Sam VilainMay 26, 2010
  2. Sam VilainMay 26, 2010
  3. Will PalmerMay 26, 2010
  4. Sam VilainMay 26, 2010
  5. Sverre RabbelierMay 26, 2010
  6. Michael J GruberMay 26, 2010
  7. Sam VilainMay 26, 2010
  8. Michael J GruberMay 26, 2010

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.