Accessing SVN Repository on external drive

Posted by Stephen on Super User See other posts from Super User or by Stephen
Published on 2014-05-20T16:31:34Z Indexed on 2014/05/30 15:37 UTC
Read the original article Hit count: 163

Filed under:

I've installed SVN on my Raspberry PI and configured it to access the repository on an external hard drive.

In /etc/fstab, I've have the following:

//192.168.1.12/SHARE/repos /media/repos cifs sec=ntlm,username=Guest,password=,_netdev,dir_mode=0777,file_mode=0777 0 0

This mounts with no issues.

When I go to add a project to the repository using the following command:

sudo svn import mywebsite/ file://media/repos/mainrepository/mywebsite/ -m "Initial Upload" 

I get the following error:

svn: E170000: Unable to connect to a repository at URL 'file://media/repos/mainrepository/mywebsite'
svn: E170000: Unable to open an ra_local session to URL
svn: E170000: Local URL 'file://media/repos/mainrepository/mywebsite' contains unsupported hostname

The only thing I think maybe causing the issue is the file settings:

drwxrwxrwx 2 root root    0 Jun 11  2009 repos

As you can see the owner is root, I think it needs to be www-data, but for some reason I can't change it.

Any help appreciated.

© Super User or respective owner

Related posts about svn