You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i clone a repository with ssh, and then want to create a new worktree via telescope, git cannot fetch origin because there is no way to enter the passphrase to unlock my ssh key.
Error executing luv callback:
.../nvim/lazy/git-worktree.nvim/lua/git-worktree/status.lua:63: 4 / 8: create_worktree Failed: PATH /mnt/d/Projekte/notetilus/urukai CMD { "fetch", "--all" } RES { "Fetching origin" }, ERR { "ssh_askpass: exec
(/usr/bin/ssh-askpass): No such file or directory", "[email protected]: Permission denied (publickey).", "fatal: Could not read from remote repository.", "", "Please make sure you have the correct access rights",
"and the repository exists.", "error: Could not fetch origin" }
stack traceback:
[C]: in function 'error'
.../nvim/lazy/git-worktree.nvim/lua/git-worktree/status.lua:63: in function 'error'
...re/nvim/lazy/git-worktree.nvim/lua/git-worktree/init.lua:251: in function 'fn'
.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:618: in function 'v'
.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:244: in function '_shutdown'
.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:47: in function <.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:38>
The text was updated successfully, but these errors were encountered:
I personally don't know how to solve this at the moment but I might give it a deeper look, but I have done some initial searching to get an idea on how to do it. Hopefully it might help somewhat.
What I gathered is that one problem when trying to solve this (I think, might only be netrw) is related to this StackOverflow question.
Yet tpope/vim-fugitive manages to prompt for SSH passphrase when doing e.g :G push. So creating/finding a lua-port of their code that handles the prompt might be a solution. This suggests the above problem is only related to netrw.
In the meantime, I suggest using the patch from #99 to disable automatic fetching on worktree creation.
If i clone a repository with ssh, and then want to create a new worktree via telescope, git cannot fetch origin because there is no way to enter the passphrase to unlock my ssh key.
The text was updated successfully, but these errors were encountered: