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

Re: Git stash gpg prompting

From
Jeff King <peff@peff.net>
Date
May 30, 2014, 20:24 UTC
Message-ID
<20140530202413.GD5513@sigill.intra.peff.net>
In-Reply-To
<CALp-zYGRLKJfC5rVygRg8adjsxP0h2dguNSYsvmcZxq7tcEQfg@mail.gmail.com>
On Fri, May 30, 2014 at 01:07:16PM -0700, Eddie Monge wrote:
Show 13 quoted lines
> Git stash is prompting for passphrase to try to "sign" the changes
> being stashed.
> 
> Reproduce:
> Add to global gitconfig with signing key:
> ```
> [commit]
>   gpgsign = true
> ```
> Go to a repo, make some changes, and then run `git stash`
> 
> Expected: stash the changes as normal
> Actual: git prompts for passphrase (if set)

Well, yeah...stash is making a commit (two, actually), so it wants you to sign it. :)

I suspect that using "git notes" has a similar problem. I can see an argument for not signing stashes, as they are meant to be temporary and not shared. I do think notes probably should be signed.

However, I wonder if it is really ever going to be sane to set commit.gpgsign and not use something like gpg-agent. For example, if you were to ever "git rebase" a patch series (or even just use "git rebase -i" to refactor commits), you would be prompted for your passphrase to sign each individual patch.

-Peff
Previous: Eddie MongeNext: Junio C Hamano
Message 2 of 3 in “Git stash gpg prompting”
  1. Eddie MongeMay 30, 2014
  2. Jeff KingMay 30, 2014
  3. Junio C HamanoMay 30, 2014

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.