Simple proxy test (was Re: What's in master tonight)
- From
- Yaacov Akiba Slama <ya@slamail.org>
- Date
- Nov 20, 2005, 14:28 UTC
- Message-ID
- <43808816.4050501@slamail.org>
- In-Reply-To
- <7v7jb31zm2.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 7 quoted lines
>proxy for git:// transport: > > I do not have any pending issues on this patch, and I > think it is ready to go in when somebody, preferably > other than the original author, says it is useful and > does not break things. >
I tested the proxy code from a place when the git:// port is blocked.
1) I made a ssh socks tunel (ssh -D 2080 a-remote-server). 2) I compiled connect.c from http://zippo.taiyo.co.jp/~gotoh/ssh/connect.html 3) I created a simple script called myproxy:
#!/bin/sh
/path/to/connect -S localhost:2080 $@
4) GIT_PROXY_COMMAND=/path/to/myproxy cg-clone git://git.kernel.org/pub/scm/git/git.git git2 worked perfectly
4bis) % cat .git/config [core] gitproxy = /path/to/myproxy for kernel.org
cg update worked perfectly.
--yas