Subversion ignoring “--password” and “--username” options

后端 未结 7 1692
别跟我提以往
别跟我提以往 2020-12-13 06:14

When I try to do any svn command and supply the --username and/or --password options, it prompts me for my password anyways, and always will attemp

7条回答
  •  攒了一身酷
    2020-12-13 06:31

    I had a similar problem, I wanted to use a different user name for a svn+ssh repository. In the end, I used svn relocate (as described in in this answer. In my case, I'm using svn 1.6.11 and did the following:

    svn switch --relocate \
        svn+ssh://olduser@svnserver/path/to/repo \
        svn+ssh://newuser@svnserver/path/to/repo
    

    where svn+ssh://olduser@svnserver/path/to/repo can be found in the URL: line output of svn info command. This command asked me for the password of newuser.

    Note that this change is persistent, i.e. if you want only temporarily switch to the new username with this method, you'll have to issue a similar command again after svn update etc.

提交回复
热议问题