Hiding path to repository in svn+ssh link
|
| View previous topic :: View next topic |
| Author |
Message |
thechriskelley
Joined: 22 Feb 2010 Posts: 1 Location: San Luis Obispo, CA
|
Posted: Tue Feb 23, 2010 3:21 am Post subject: Hiding path to repository in svn+ssh link |
|
|
Greetings,
I'm fairly new to administrating repositories, and currently setting up a SVN repository on Mac OS X 10.6 Server that is located locally at /Library/Subversion/RepoName. To access the repository "RepoName" from another machine, I was told to use:
svn+ssh://user:pass@host/Library/Subversion/RepoName
Obviously the first half looks okay, but I'd rather not reveal the local path to the repository to the public. Is there a way to configure svn to add the "/Library/Subversion" prefix to any path given, so that the uri would look like this?
svn+ssh://user@host/RepoName
Thanks for any help!
Chris _________________ Nine out of ten voices in my head tell me that I'm insane. The tenth voice hums the Tetris theme song. |
|
| Back to top |
|
sachidanand
Joined: 10 Sep 2009 Posts: 14
|
Posted: Mon Mar 08, 2010 4:42 am Post subject: |
|
|
Not sure of MAC (but should be similar), i have done it on Solaris in following way
Rename file “/svn/install/location/svnserve” to “svnserve.bin”
Create a text file “svnserve” in same location
Add following line to the file
exec /svn/install/location/svnserve.bin -r /repository/location "$@"
Save & Exit
Make svnserve an executable file using command:
chmod 555 /svn/install/location/svnserve
Now the URL is
svn+ssh://server_name/repository_name
As most of my users are accessing reps from Windows boxes, I ask them to add their user ID and password in TortoiseSVN settings--> Network --> SSH client so that they dont need to provide it on every interaction in following manner
C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe -l user_id -pw password |
|
| Back to top |
|
|
View previous topic :: View next topic |
|