denolehov / obsidian-git Public
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 |
I automatically sign all of my commits: my
~/.gitconfigincludesWhen the plugin attempted to commit some changes, I got this error in the console:
The text was updated successfully, but these errors were encountered: