Re: [gnome-love] jhbuild, behind proxy compiling gnome-todo



Thank you Tobias. This looks like a complex hack.

I would like to put the line 'exec socat..' inside an 'if' so that it
is executed only if I have http_proxy or allies exported already.
Could also please tell me what needs to the corresponding line in the
else part?

I mean, will git work like normall if ~/.local/bin/gitproxy does not
do anything even with core.gitproxy is set to ~/local/bin/gitproxy ?

On 20 January 2016 at 19:52, Tobias Mueller <muelli cryptobitch de> wrote:
On Mi, 2016-01-20 at 13:37 +0530, Jay Aurabind wrote:
Can you please give me any further pointers ?
I configured git like this:

git config --global http.proxy {{ proxy_http_server_url }}
git config --global https.proxy {{ proxy_https_server_url }}
git config --global --add 'url.https://.insteadOf' 'git://'

For repositories without a http link, I use smth like

git config --global --add core.gitproxy ~/.local/bin/gitproxy

with that file being smth like

#!/bin/sh
_proxy={{ proxy_host }}
_proxyport={{ proxy_port }}
exec socat STDIO PROXY:$_proxy:$1:$2,proxyport=$_proxyport

This made it work for me reasonably well.
But I find myself cloning with --depth=1 to not load too many objects
which seems to confuse the proxy I am forced to use.

hth,
  Tobi



-- 

Thanks and Regards,
Aurabindo J



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]