-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
automatic gpg signing doesn't seem to work #21
Comments
hey @Sigafoos, are you on Linux? If so, could you try launching Obsidian from a command line using their AppImage and see if the problem persists? Or if you're using flatpak: /home/$USER/.local/share/flatpak/app/md.obsidian.Obsidian/current/active/files/obsidian |
Unfortunately I'm on a Mac (and Windows, though I haven't tried it there yet) |
GUI apps on Mac don't read your shell initialization files (.profile, .bashrc etc.), so they generally have a different PATH from what you get in your terminal. So one solution would be to modify the system-wide PATH variable, but I guess the reason Homebrew or other package managers don't recommend doing this by default, is the risk of conflicts. My preferred solution is therefore instead to tell
Then configure git to use that full path:
|
This worked! Thank you so much. |
I'm on Linux using the Flatpak version, with git-error.js:31 Uncaught (in promise) Error: error: gpg failed to sign the data
fatal: failed to write commit object
at GitExecutorChain.onFatalException (eval at evalFunc (app.js:1), <anonymous>:2302:85)
at GitExecutorChain.eval (eval at evalFunc (app.js:1), <anonymous>:2293:28)
at Generator.throw (<anonymous>)
at rejected (eval at evalFunc (app.js:1), <anonymous>:2247:65) |
Fyi, there is another workaround: if you start Obsidian from the terminal where the environment is initialized ( |
This doesn't seem to work for me. I've installed homebrew so maybe that's a factor. I don't have any files on my computer called gpg. @Sigafoos any suggestions? `Uncaught (in promise) Error: Pushing to https://github.com/dmthepm/garden.git
|
I've got two files in /localmachine/ruby -v/Library/Taps/homebrew/homebrew-core/Formula called gpg-tui.rb |
This is working for me. Thank you! |
Hi @dmthepm hopefully you figured this out. Explaining how to install/set it up and integrate with Git, and obsidian seems to be well outside the scope of this issue. The solution to this issue, is simply about how PATH environment var is (or isn't) passed to GUI apps like Obsidian, so we can configure git to know where to find the for example:
If you don't have gpg installed, the process is involved and not trivial for non-dev/ops/programmer people, as you'll need to install it and setup your cryptographic keys etc. For example on mac you could look at this guide. https://gist.github.com/troyfontaine/18c9146295168ee9ca2b30c00bd1b41e Google will help you for other platforms/os "how do I setup GPG on X" |
I automatically sign all of my commits: my
~/.gitconfig
includesWhen the plugin attempted to commit some changes, I got this error in the console:
The text was updated successfully, but these errors were encountered: