开发者

How do I shorten the repository URL using svn+ssh similar to svnserve -r?

In the svnbook, it shows you how to shorten the URL to your repositories when using svnserve as a daemon, using -r like:

svnserve -d -r /usr/local/repositories

That way, you can refer to the repository you need right after the hostname in the URL without revealing any of the local path (which is /usr/local/repositories/project1):

svn checkout svn://host.example.com/project1

However, now that I am switching to svn+ssh, I have the local path back in my repository URL:

svn checkout svn+ssh://host.example.com/usr/local/repositories/project1

Does anyone know how to hide that local path and use a shorter URL as up above, using svn+ssh and WITHOUT using a UNIX soft link on the s开发者_Go百科vn server? (you still end up with an extra string in the URL if you use a soft link...)

UPDATE: The solution to this can be found in the accepted answer over on ServerFault (the green-checked answer). Yay!


UPDATE: The solution to this can be found in the accepted answer over on ServerFault (the green-checked answer). Yay!


Might not be what your asking about but I just use bash aliases to alias the long commands to short ones.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜