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

git send-email loses annotate changes on error

From
Jjtojnar@gmail.com <jtojnar@gmail.com>
Date
May 5, 2020, 18:29 UTC
Message-ID
<68d07bcc90de093701a0a5589107d91a10a3af08.camel@gmail.com>
Hello.

I tried sending a patch using `git send-email -1 --annotate`, and decided to describe the checks I ran in the annotation. Unfortunately, the submission failed due to a transient network error:

   Unable to initialize SMTP properly. Check config and use --smtp-
   debug. VALUES: server=smtp.gmail.com encryption=tls
   hello=kaiser.localdomain port=587 at
   /nix/store/d5pdyggxfcbwlk3m59nasnzdm33kdyg7-git-2.26.1/libexec/git-
   core/.git-send-email-wrapped line 1557.

Then I wanted to resubmit the patch but all the changes I made in the annotate steps were lost, as the tempdir has been cleaned up on exit:

https://github.com/git/git/blob/de49261b050d9cd8ec73842356077bc5b606640f/git-send-email.perl#L685
I am running git version 2.26.1.
Message 1 of 1 in “git send-email loses annotate changes on error”
  1. jtojnar@gmail.comMay 5, 2020

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.