My Subversion repository name has & in it. I get an error while checking it out. Is there a workaround?
svn co https://ssss.my.com/D&G/
OPTIONS of https://ssss.my.com/D&G/ 200 OK
My Subversion repository name has & in it. I get an error while checking it out. Is there a workaround?
svn co https://ssss.my.com/D&G/
OPTIONS of https://ssss.my.com/D&G/ 200 OK
As DavidPostil suggested in a comment what you need to do is "escape" the & character. SVN usually supports %-codes in URLS, from experience urls containing spaces will get converted to %20 characters.
The %-code for & (ampersand) is %26 so try the command:
svn co https://ssss.my.com/D%26G/
Do you own and control the repository? Are there other users, or just you? If you are the only user then concider changing the name of the repository. Say: https://ssss.my.com/DnG/
Alternatively:
ssh root@ssss.my.com
### Just trying to make it explicit that you need to cd to the directory above "D&G"
cd /path/to/svn/repository/D\&G/ && cd ..
ln -s D/&G DnG
### Now, if necessary, edit your apache configuration so that the DnG softlink gets served up to https://ssss.my.com/DnG/
I could not find the official doc for repository naming conventions, but all tested http(s) svn servers allow only alpha, nums, dash and underscore chars in repo name.
I think using of & char in repo name is incorrect.
But you can use the & in folders path in your repo.
The usage of '%26' instead of special character '&' solves the problem.