Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing the username for a Subversion commit over svn+ssh

Tags:

ssh

svn

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?

like image 288
Christian Studer Avatar asked Feb 24 '09 11:02

Christian Studer


1 Answers

Use "svn switch --relocate" to change the repository server 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 --relocate svn+ssh://MYUSERNAME@server/ svn+ssh://server/

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.

like image 65
Nik Reiman Avatar answered Oct 29 '22 19:10

Nik Reiman