tags:

views:

1505

answers:

1

I've run into an issue with our Subversion configuration here: I've checked out a project over svn+ssh on the local Linux system. So svn info reports something along the lines of:

URL: svn+ssh://MYUSERNAME@server/svn/project/trunk/

Now my co-worker is unable to update the checked out working copy (It's on a live server) because the command line parameter --username doesn't work with svn+ssh.

How can I temporarily change or remove the username from the repository URL?

+4  A: 

Use "svn switch" to change the repository URL to just the address without his username.

Edit: The syntax is pretty simple; sorry I hadn't explained it in my initial answer. Basically, you just cd into the working copy, and run:

svn switch svn+ssh://server/svn/project/trunk/

That should take the username of the user running that command. I'm also fairly certain that you can also specify the new username in that URL (though am not in front of a unix box right now, so I can't test this).

Does that command not do what you intended when you ran it from the command line?

For more information, see the red bean chapter on svn switch.

Nik Reiman
Thank you, that's probably it. I am still trying to figure out the correct syntax though.
christian studer