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

Re: Using svn+ssh

From: Lasse Kliemann <lasse-subversion-users-2004_at_plastictree.net>
Date: 2004-10-04 00:21:28 CEST

* Patrick Nelson writes:

> /etc/xined.d/svnserve file looks like:
>
> ---snip---
> service svnserve
> {
> disable = no
> socket_type = stream
> wait = no
> user = svn
> server = /usr/bin/svnserve
> server_args = -i -r /var/scm
> }
> ---snip---
>
> I have read through the manual and either I missed it or something, it
> seems like it would go into the runtime configuration... But how do I
> specify a repo root when using svn+ssh?

As to my knowledge, there is no configuration option on how svnserve is
called on the "other side" of the ssh tunnel. It is always called as
svnserve -t. This is hard-coded in subversion/libsvn_ra_svn/client.c. I
recently ran into the situation that I had to configure this.

Attached you find a quick patch that allows you to define how svnserve is
called via the environment variable SVN_SSH_SVNSERVE. In your case, setting

export SVN_SSH_SVNSERVE="svnserve -r /var/scm"

might be appropriate. The -t is still added automatically (which can
trivially be altered-- see the source and the patch).

The attached patch has been taken against subversion/libsvn_ra_svn/client.c
from subversion 1.1.0.

-- 
Lasse Kliemann
      private homepage: http://plastictree.net
   NO software patents: http://swpat.ffii.org
do NOT use M$ products: http://plastictree.net/articles/noms


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Mon Oct 4 00:24:38 2004

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.