Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I first created the /trunk on

svnadmin create /trunk
svnserve -d -r /trunk

Then I tried to connect to svn://,but it doesn't exists...

So I tried svn://,this time it works...

Why my repository /trunk maps to /?

share|improve this question
up vote 3 down vote accepted

You've created a repository folder called trunk with the first command (the -r argument tells svnserve to set the given location as the root.), but this is just the filesystem location of the repository.

I believe svnserve will always seerve the repo as the root folder in the URL (I can't see any options in the man page for overriding this, anyway).

What I think you need to is to create and commit the trunk folder into your empty repository (along with your branches and tags folders, should you desire them). My usual tactic is as follows:

On the Server:

svnnadmin create repo
svnserve -d -r repo/

On the Client:

svn co svn:// repo/
cd repo
mkdir branches tags trunk
svn add *
svn ci -m "Base directory structure"

Then svn:// will be your repository trunk.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.