-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
:Gpush freezes when used with neovim #722
Comments
It will probably require something a bit more involved, as we are using |
I have the same problem. |
Fugitive supports it but this is out of my element. |
Hi there! I have this problem as well. However, my current workaround is to add ssh-key to your github account and use ssh instead of https. |
+1 |
This issue still exists when credentials are requested... |
Would it help to use a poor workaround like setting |
That's a good idea, though we should check that we're not overriding On that note, we could use |
Not sure if it's the same problem I'm encountering, but |
@sfzylad, to make sure what you mean by freeze: |
Ping, same here, running |
Same here, running |
Encountering this same problem in |
I guess, the problem is present for a while now. Anyhow, using ssh keys is
more convenient and safe.
On Jan 12, 2018 02:28, "Paolo Usero" <notifications@github.com> wrote:
Encountering this same problem in nvim v0.2.2.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#722 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADJ0ks3q99hWqsDaUy8nxwC-PpufzfqCks5tJqclgaJpZM4GoDot>
.
|
Here's an overly elaborate vimrc snippet to use if (len($SECURITYSESSIONID) || len($DISPLAY)) && empty($SSH_ASKPASS)
let s:gui_askpass = system("git --exec-path")[0:-2] . "/git-gui--askpass"
if executable(s:gui_askpass)
let $SSH_ASKPASS = s:gui_askpass
elseif executable("ssh-askpass")
let $SSH_ASKPASS = "ssh-askpass"
endif
endif You'll need at least one of those two tools installed, obviously. |
@tpope This works for me. I'm using |
Hey @tpope, thanks for caring and pushing these changes. I've checked out the latest version today (80996c2) and it seems
It's as if no askpass was found in that setup and therefor the git push command failed.. Besides this issue which might interest you, I will confirm though, in relation to your comment in #1052 (comment), that having both https://github.com/tpope/vim-dispatch and https://github.com/radenling/vim-dispatch-neovim installed, gives a UX I'm satisfied with, as a Neovim user - If anyone has come to depend on my fork of fugitive, I'm archiving it. |
Correct, no I am not particularly satisfied with this solution, but as someone who doesn't enter their password on every single fetch, that's the priority. Side note, I recommend everyone use ssh keys or credential caching or anything other than typing in your password like an animal each time, you deserve it. |
Hello,
When running Fugitive with Neovim, the
:Gpush
command freezes if a password prompt is shown.This is because neovim doesn't redirect keyboard input to the stdin of the subprocess. The only way to quit is to kill the neovim process.
The
:Git
command already makes use of the neovim terminal emulator so that functions likes:StagePatch()
don't freeze on the password prompt. Could you also makes:Dispatch()
use:terminal
in neovim (something like lzh9102@dc4f285) so that:Gpush
and:Gfetch
don't freeze? Thank you!The text was updated successfully, but these errors were encountered: