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

Subversion Server on Windows problems

From: Ayende Rahien <Ayende_at_Ayende.com>
Date: 2004-12-03 17:58:02 CET

I want to use Subversion over ssh when the server is windows, I've OpenSSH
installed with an empty banner.txt file.
when I'm logging in manually I get:
C:\>ssh localhost svnserve -t
Ayende@localhost's password:
( success ( 1 2 ( ANONYMOUS EXTERNAL ) ( edit-pipeline ) ) )
 
Trying to use svn+ssh is causing me problems, though.
My repository is located on D:\Subversion
 
d:\>svn list svn+ssh://localhost/
Ayende@localhost's password:
svn: No repository found in 'svn+ssh://localhost'
 
When I try to add the full path, using Cygdrive notaion, I get:
 
D:\>svn list svn+ssh://localhost/cygdrive/d/Svn
Ayende@localhost's password:
svn: No repository found in 'svn+ssh://localhost/cygdrive/d/Svn'
 
Using normal windows notation, I get:
 
D:\>svn list svn+ssh://localhost/d:/Svn
Ayende@localhost's password:
svn: Couldn't determine repository path
 
Using pipe symbol doesn't help either:
 
D:\>svn list "svn+ssh://localhost/d|/Svn"
Ayende@localhost's password:
svn: Can't open file '/d|/Svn/format': The filename, directory name, or
volume label syntax is incorrect.
 
In short, I need a way to get the -r paramter to svnserve.
I tried creating renaming svnserve svnserve2 and created a batch file named
svnserve.bat that contained this command:
svnserve2.exe -r D:\Svn\ %1
 
But apparently that is not good enough for sshd, when I do this I get:
D:\>svn list svn+ssh://localhost/
Ayende@localhost's password:
svn: Connection closed unexpectedly
 
I tried building an exe that call svnserve2 but that didn't work either,
probably because pipe redirections.
 
I know that the supported way on *nix is to simply replace svnserve with a
script, but this doesn't work on windows.
How can I make it work?
Received on Fri Dec 3 18:01:24 2004

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