-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signing fails via GPG #596
Comments
Any solutions for this? Right now is not possible to use Gitsavvy with signed commits at all. |
@aristidesfl, sorry for not commenting anything. |
@aristidesfl have you seen the docs for signing commits with GPG? This method should work on Windows. |
@divmain Hadn't seen them and I was missing
but the error persists, and in the command line it still works like usually. |
Are you prompted for the password via |
@divmain at the moment I'm not prompted at all, I believe because of |
Isn't gpg responsible for asking for the private key password? are you sure that |
Can you check to see if setting |
@divmain that solves the issue. that last comment makes a lot of sense. Possible to streamline with Gitsavvy? |
Sweet! I'll leave this open until we push a fix into master. Thanks for confirming! |
@divmain, did you see anywhere if it is possible to override that with a environment variable? |
@divmain did you edit your comment? setting |
@aristidesfl I think I had a similar problem. And I've solved it like this:
|
@divmain any progress on this? |
@aristidesfl have you tried last documentation solution ? It was concieved by @rpbaptist in #36 and seems to work well on a variety of platforms (at least those that can run git-gui). |
@asfaltboy |
@aristidesfl oops, I just noticed I only repeated what was already mentioned above :( of course no-tty is still the solution for running git -> gpg from Sublime. Not aware of any way to force I think we can simply update docs with a reccomendation to run |
@asfaltboy setting up no-tty only in GitSavvy is the way to go, since it is the only program which doesn't provide a tty. Either that or providing a valid tty. Setting no-tty globally doesn't seem like a good recommendation since eventually gpg will fail silently, even when evoked from the terminal. |
Since git remains a command line tool, we depend on the arguments it supports, and I don't believe it's core gpg implementation supports specifying parameters to the gpg command. I wouldn't say it's the only program to require Interesting... Looking at sourcetree solution, they pass a "custom"
This is a pretty awesome workaround, at least for systems that have bash, and one that we can surely implement. For windows, the current solution should already work, since windows requires an installed GnuPG client which does not default to run in terminals (no-tty not required). |
@asfaltboy, can you make a patch for this? |
This is my gist that explain how to enable auto-signing of Git commits for EVERY programs that don't support it natively.. |
I completely forgot about this issue, very sorry. Had a bit of time today to hack up a WIP solution in #1018 , with a few points remaining to be resolved. I was able to sign the commit by just using the provided script and settings - maybe it's enough 🤔, please chime in and leave your comments there. |
Closing bc an PR addressing or referencing this issue has been merged. |
Related to #581 but not on windows.
On the terminal it works, and no password is asked. I guess it is cached or handled automatically with
Since no interactin is actually required, is there any configuration possible which allows this to work?
The text was updated successfully, but these errors were encountered: