Skip to content
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

[Bug]: GPG doesn`t work when program is .sh file or with ~/ #712

Open
painhardcore opened this issue Mar 25, 2024 · 0 comments
Open

[Bug]: GPG doesn`t work when program is .sh file or with ~/ #712

painhardcore opened this issue Mar 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@painhardcore
Copy link

painhardcore commented Mar 25, 2024

Describe the bug

Currently I have some logic related to gpg and this works everywhere, but with plugin

[gpg]
	program = /Users/painhardcore/.magicGPG.sh

or

[gpg]
	program =  ~/gpg

Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)

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

node:internal/process/task_queues:95 Uncaught (in promise) Error: error: gpg failed to sign the data
fatal: failed to write commit object

    at Object.action (plugin:obsidian-git:29441:25)
    at PluginStore.exec (plugin:obsidian-git:29466:25)
    at eval (plugin:obsidian-git:26971:43)
    at new Promise (<anonymous>)
    at GitExecutorChain.handleTaskData (plugin:obsidian-git:26969:16)
    at GitExecutorChain.eval (plugin:obsidian-git:26953:44)
    at Generator.next (<anonymous>)
    at fulfilled (plugin:obsidian-git:25798:24)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
action @ plugin:obsidian-git:29441
exec @ plugin:obsidian-git:29466
eval @ plugin:obsidian-git:26971
handleTaskData @ plugin:obsidian-git:26969
eval @ plugin:obsidian-git:26953
fulfilled @ plugin:obsidian-git:25798
processTicksAndRejections @ node:internal/process/task_queues:95


### Steps to reproduce

1. Put .sh or ~ in gitconfig
2. Try to commit

### Expected Behavior

When committing - it executes .sh file or gpg with ~ in path

### Addition context

_No response_

### Operating system

macOS

### Installation Method

AppImage

### Plugin version

2.24.1
@painhardcore painhardcore added the bug Something isn't working label Mar 25, 2024
@painhardcore painhardcore changed the title [Bug]: GPG doesn`t work when program is .sh file [Bug]: GPG doesn`t work when program is .sh file or with ~/ Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant