git config --global http.proxy http://:@:
git config --global url.https://github.com/.insteadOf git://github.com/
I had the same problem and found solution. There is a rockspec that contains URL for nvim-client -
git://github.com/neovim/lua-client
. If you're behind some sort of firewall or proxy you're probably forbidden to use git protocol. If you try to issuegit clone git://github.com/neovim/lua-client
you will get that timeout error message. If you try same URL but use https protocol like this
git clone https://github.com/neovim/neovim.git
and succeeds then you need to configure 2 things:
- Configure proxy for git.
- Configure rewriting
git://
urls tohttps://
urls
For simple proxies you can just configure it with
git config http.proxy
. If you have some exotic setupgitProxy
scripts could help you - see examples here.
Now that you can connect via proxy you need to pass through proxy by using
https
instead of git
protocol. There is an config option insteadOf
for this:git config --global url.https://github.com/.insteadOf git://github.com/
This will substitute
git://
urls for https://
urls for all github repos.
After that I had successfully built neovim (
make distclean
and make
).
Here are these options for .gitconfig:
[http]
proxy = http://:@:
[url "https://github.com/"]
insteadOf = git://github.com/
No comments:
Post a Comment