Subversion with proxies

how-to
Sep 1, 20091 min

If you happen to reside on a network that requires proxy authentication, command-line Subversion won’t work. Unless, of course, you configure Subversion to leverage a proxy correctly. If you find yourself in such as situation (as I did) and for some unfortunate reason find yourself on a bogue Windows machine (as I did, sadly) there is a file dubbed servers found deep in your home directory (your home directory in Windows is found in the C:Documents and Settings directory and is your user name). In the home directory there is a hidden directory called Application Data and not surprisingly, in that directory, you’ll see a Subversion directory — it’s in here that you’ll find the servers file. If you find yourself in a unix-like environment, the servers file should be found in a subversion directory in your home directory.

Open the servers file and you’ll find a section called [global]. You’ll see a series of http-proxy properties that are commented out (#) — uncomment them and fill in your values, save the file, and you’ll be good to go, baby!

You can now follow The Disco Blog on Twitter, baby!
andrew_glover

When Andrew Glover isn't listening to “Funkytown” or “Le Freak” he enjoys speaking on the No Fluff Just Stuff Tour. He also writes articles for multiple online publications including IBM's developerWorks and O'Reilly’s ONJava and ONLamp portals. Andrew is also the co-author of Java Testing Patterns, which was published by Wiley in September 2004; Addison-Wesley’s Continuous Integration; and Manning’s Groovy in Action.

More from this author