[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svnserve -r or --root

From: Nick Thompson <nickthompson_at_agere.com>
Date: 2005-10-26 14:55:17 CEST


I'm using svn+ssh, where I already have an ssh key pair setup to the server
for other purposes and therefore don't want to specify the svnserve command
in authorized_keys. What is the recommended approach to specifying the -r or
--root option to use on the server?

Currently, I have a svnserve wrapper:

#!/bin/sh -f

while [ ! -z "$1" ]; do
    space_test=`echo $1 | awk '{print $2}'`
    if [ ! -z "$space_test" ]; then
        ARGS="$ARGS \"$1\""
        ARGS="$ARGS $1"

eval /usr/bin/svnserve -r /root/path $ARGS

It's okay, but a bit messy due to the way I have handled the ARGS to preserve
spaces in augments that might have them. Maybe thats a bit over the top for
svnserve? Maybe there is a better approach?


> Nick Thompson
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 26 14:58:53 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.