use proxy for omnifunc when configured in .gitconfig or .git/config#52
use proxy for omnifunc when configured in .gitconfig or .git/config#52shadowwa wants to merge 1 commit intoshumphrey:masterfrom
Conversation
|
hmm, I would have expected that config to be part of your ~/.curlrc |
|
I haven't fully thought this through, but I think it used to be common for the git config of gitlab to be different to the api/http stuff. |
|
I had a quick scan of rhubarb to see if it supports doing anything with gitconfig http proxy and it doesn't appear to. |
Do you mean when git use [remote "origin"]
url = git@my-ssh.gitlab.privateand the gitlab api is accessible via https://gitlab-url.private ? let g:gitlab_proxies = {'gitlab-url.private': 'socks5h://proxy-url:8082'}
It was my first idea but unfortunately, proxies can only be set global from HTTP_PROXY environment variables or in |
When using a gitlab instance behind a proxy, I need to configure the proxy in ~/.gitconfig or .git/config file.
In fugitive-gitlab.vim, curl requests are not using this proxy hence the omnifunc does not works.
With this commit, if a proxy is configured in git config files, it will by used.