rstudio / rstudio

RStudio is an integrated development environment (IDE) for R
https://posit.co/products/open-source/rstudio/
Other
4.67k stars 1.09k forks source link

git signed commit fails if gpg key is locked #13760

Open timtmok opened 1 year ago

timtmok commented 1 year ago
          Is there any documentation for how to use the new commit signing feature?

When pressing the Commit button with "Sign commit" checked, I expected a prompt to ask me to unlock my key, but instead I get an error:

error: gpg failed to sign the data
fatal: failed to write commit object

It works as expected if I first unlock my key from the terminal.

Originally posted by @jeffkeller-einc in https://github.com/rstudio/rstudio/issues/1865#issuecomment-1750682628

timtmok commented 1 year ago

A prompt to enter the password or a message that it needs to be unlocked from the terminal would help the user understand what is going on.

sharon-wang commented 1 year ago

cc @jthomasmock To add content in user guide

ronblum commented 1 year ago

I created issue #13781 to track the documentation separately.