rugged icon indicating copy to clipboard operation
rugged copied to clipboard

Proxy support for HTTP transport for `.clone_at` in rugged?

Open ghost opened this issue 10 years ago • 4 comments
trafficstars

Is there any chance to support HTTP-transport via proxy in rugged for Rugged::Repository.clone_at('http://example.org/repo.git')? There's an issue open at libgit2/libgit2#2555, but maybe that would be something which can / needs to be "fixed" in rugged itself.

Cheers, dg

ghost avatar Nov 28 '14 17:11 ghost

Hey @dg-ratiodata,

Support in Rugged will only be possible after the support for http proxies was implement in libgit2.

arthurschreiber avatar Nov 28 '14 20:11 arthurschreiber

Ok. Thanks for the reply. :-)

Do you know if https://libgit2.github.com/libgit2/#HEAD/group/transport would be the correct place where one needs to implement a suitable transport mechanism? Sorry for asking that, but I'm not familiar with libgit2 and C either.

ghost avatar Dec 01 '14 16:12 ghost

From what I understand, http(s) connections that make use of libcurl will honor the http_proxy and https_proxy environment variable correctly. Unfortunately, there's no runtime support for setting this configuration yet - https://github.com/libgit2/libgit2/pull/3110 is supposed to resolve that, but it's still pretty much a work-in-progress.

To summarize: If you run on linux, use rugged 0.23 or later, and have the libgit2 bits compiled to use libcurl, proxies for http and https should work based on what is defined in the http_proxy or https_proxy environment variables.

arthurschreiber avatar Aug 26 '15 20:08 arthurschreiber

Has this been resolved with https://github.com/libgit2/rugged/pull/808?

synthead avatar Dec 01 '21 01:12 synthead