The common problem under linux for downloading source code using command prompt is proxy!! Especially if the proxy and firewall doesn’t have open ports. Recently while fetching the git repo of webkit I faced this problem. So, am documenting this here.
$ sudo apt-get install socat
$ socat TCP4-LISTEN:9418,reuseaddr,fork\ $ PROXY:www.proxyserver.com:git.webkit.org:9418,proxyport=8080,proxyauth=user:pass &
$ git clone git://127.0.0.1/WebKit.git WebKit
The above is the way using which you can download source code from a remote git server.
In /etc/subversion/servers,[global]http-proxy-host = <proxy-host-name or ip>http-proxy-port = <proxy port>
The above configuration setting is for Subversion.
No comments:
Post a Comment