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

Prevent hanging by git command on mis-typed repository #57

Closed
DarwinSenior opened this issue Jul 27, 2021 · 2 comments · Fixed by #66
Closed

Prevent hanging by git command on mis-typed repository #57

DarwinSenior opened this issue Jul 27, 2021 · 2 comments · Fixed by #66
Labels
enhancement New feature or request

Comments

@DarwinSenior
Copy link

Hi,
I was wondering if we can have GIT_TERMINAL_PROMPT=0 by default to prevent hanging by mistyped git repository?
Usually if you type the repo names wrong, the nvim will hang by requesting you to typing username and password

@savq savq added the enhancement New feature or request label Aug 13, 2021
savq pushed a commit that referenced this issue Aug 13, 2021
savq added a commit that referenced this issue Aug 13, 2021
@savq
Copy link
Owner

savq commented Aug 13, 2021

Man, I tried to do this several times, and apparently the problem was that I was passing a table to env, but you're supposed to pass a list of strings (wtf luv?) Anyways, this issue reminded me to look again, and I saw that nanotee had fixed this in Packer a while ago.

This was a very common complaint so thank you so much 🙌

@savq savq mentioned this issue Aug 13, 2021
Merged
@savq savq closed this as completed in #66 Aug 13, 2021
@windwp
Copy link

windwp commented Sep 13, 2021

hi, I want to use an ssh URL to clone.
@savq

sample

require "paq" {
    "savq/paq-nvim";          
    {"windwp/nvim-autopairs",  url='git@github.com:windwp/nvim-autopairs.git'}.
}

but it will tell me I have the wrong permission for my public key. I am very sure my key has correct permission.

I try to remove that GIT_TERMINAL_PROMPT=0 from paq code then I can clone my repo using ssh method.

so can we only add that environment variable only on http method?
Thank.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants