Open JeremiahSecrist opened 2 years ago
After some more tinkering It seams that It s very inconsistent when dealing with gpg on linux. even after setting the local config it seams to not work corrently. willing to do any tests needed to sort this out.
I don't think this is an issue with global/local setting. Instead, the passphrase is missing to use the key.
I just hit this issue but in my case only flatpak installaton (of Obsidian) is affected. I tried to use official AppImage and auto / manual commit with signing works without issue.
Let me know if there is way how to help with debugging (I have zero knowledge of how flatpaks work so I am not promising to be helpful). I am fine with using AppImage until it is fixed so I am not rushing you, just sharing info. Thank you for your work.
.gitconfig
; using local config doesn't fix this issue.It doesn't work for me on Windows either.
When using the commandline everything works fine, I'm prompted for my ssh-passphrase and git does its thing, but Obsidian Git complains about "permission denied (publickey). fatal: could not read from remote repository."
A solution for simple-git could be to add an option that is something like "Needs Passphrase" with a yes / no switch in the plugin options, and if it is set to yes then query the passphrase on startup and incorporate it like shown here (npmjs.com)
Same issue on MacOS.
GPG settings are defined in global .gitconfig. GPG keychain is setup and works for me when setting up commits outside of obsidian git. The workaround of putting GPG settings into the local config works for me.
Same issue on Pop! OS.
gpg (GnuPG) 2.2.27 libgcrypt 1.9.4
Tried what @skullbunnygalaxy mentioned about adding GPG info to local config, that didn't work either.
@cybersholt How did you install Obsidian? In case you re using Flatpak, try AppImage.
same here on mac
this also seems to be happening to me.
I use below to bypass it
git config --local commit.gpgsign false
# Read local (if never set, can be an empty value)
git config --local commit.gpgsign ```
I use below to bypass it
git config --local commit.gpgsign false # Read local (if never set, can be an empty value) git config --local commit.gpgsign ```
does not help a lot when you actually want to authenticate with it..
I use below to bypass it
git config --local commit.gpgsign false # Read local (if never set, can be an empty value) git config --local commit.gpgsign ```
does not help a lot when you actually want to authenticate with it..
Anyway, it backed up automatically now
Describe the bug
Issue
when using global git configs on linux gpg fails to run properly.
Relevant errors (if available)
Steps to reproduce
Steps to reproduce
Steps to solve temporarily
Expected Behavior
I am expecting it to work with global configurations.
Addition context
Relavent information
Git configs
Global (ommiting personal data)
Local (ommitting personal data)
Operating system
Linux