Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure a HTTP proxy for svn

Tags:

proxy

svn

I want to check code from the repository http://code.sixapart.com/svn/perlbal/ . I can only access the the repository url by setting a proxy. I guess if I want to get the code from the same URL by svn I need to configure a proxy, too. So does anyone of you could tell me how to configure a HTTP proxy in svn?

By the way, I use the command-line svn client under Linux.

like image 849
Haiyuan Zhang Avatar asked Sep 29 '09 08:09

Haiyuan Zhang


1 Answers

Have you seen the FAQ entry What if I'm behind a proxy??

... edit your "servers" configuration file to indicate which proxy to use. The files location depends on your operating system. On Linux or Unix it is located in the directory "~/.subversion". On Windows it is in "%APPDATA%\Subversion". (Try "echo %APPDATA%", note this is a hidden directory.)

For me this involved uncommenting and setting the following lines:

#http-proxy-host=my.proxy #http-proxy-port=80 #http-proxy-username=[username] #http-proxy-password=[password] 

On command line : nano ~/.subversion/servers

like image 174
Rich Seller Avatar answered Sep 28 '22 07:09

Rich Seller