Repo browser in svn “Repository moved permanently

2019-04-04 02:58发布

In the repo browser when I enter the svn root (http://servername/svn) directory I get this message "Repository moved permanently to 'http//....' please relocate

There are several projects in this repository and I can access/checkout/update each project but I can't even access the root.

How can I fix this?

11条回答
2楼-- · 2019-04-04 03:09

In my case if was the wrong Proxy settings for Jenkins.

查看更多
Viruses.
3楼-- · 2019-04-04 03:11

Check your Apache Configuration and remove/comment the ErrorDocument redirection. That's all.

查看更多
放荡不羁爱自由
4楼-- · 2019-04-04 03:14

Just in case this also helps anyone. I found this message can appear if you have a DocumentRoot defined in your vhost.

查看更多
Rolldiameter
5楼-- · 2019-04-04 03:15

I have faced the same problem. Considering that you are not admin of the server, as I am not, I've used the svn switch --relocate command with success:

svn switch --relocate https://my.server.url/svn/projectname https://my.server.url/new.dictory/authscm/username/svn/projectname

Of course, these two URLs and their relative directories happened to be in my case, but in general lines this solution worked fine for me, i.e., using switch --relocate from the old to the new URL.

查看更多
Lonely孤独者°
6楼-- · 2019-04-04 03:16

Make sure you have the locaction block specified correctly in your apache config file:

<Location /svn>

not

<Location /svn/>
查看更多
叛逆
7楼-- · 2019-04-04 03:20

I've had this with spaces in the SVN url and using Cornerstone. Using terminal svn checkout <url> did work instead.

查看更多
登录 后发表回答