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

RE: svnserve -r or --root

From: André Pönitz <andre_at_wasy.de>
Date: 2005-10-27 06:46:44 CEST

Nick Thompson wrote:
> 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
>
> ARGS=""
> while [ ! -z "$1" ]; do
> space_test=`echo $1 | awk '{print $2}'`
> if [ ! -z "$space_test" ]; then
> ARGS="$ARGS \"$1\""
> else
> ARGS="$ARGS $1"
> fi
> shift
> done
>
> eval /usr/bin/svnserve -r /root/path $ARGS
> ===========================

Wouldn't this be equivalent to

===========================
#!/bin/bash
/usr/bin/svnserve -r /root/path "$@"
===========================

or even

alias svnserve='svnserve -r /root/path'

?

I am sure there are similar solutions for other shells, too.

Andre'

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 27 06:50:42 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.