Checkout SVN Repository from Behind a Proxy

A lot of standard Unix tools can be made to work from behind a proxy by setting the ‘http_proxy’ environment variable. The ‘http_proxy’ variable can be set to something like http://username:password@proxy:8080. Alas, this does not work with SVN. If you are on Windows the way to get SVN working from behind a proxy is to actually modify the ’servers’ file which is available in the folder ‘C:\Users\[username]\AppData\Roaming\Subversion’. While this is for Windows Vista, the file should be available in a similar folder in older versions of Windows. In the ’servers’ file, the header comments explain in detail the changes that need to be made. Basically, you just have to ensure that you mention the proxy server and port, and additionally (if required) the username and the password. On Unix variants the ’servers’ file will usually be available under the ‘~/.subversion’ directory.

Agreed, it could have been easier, but people working on free software usually do not work from behind corporate firewalls :) (or do they?)

Post a Comment

Your email is never shared. Required fields are marked *

*
*