You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Roman Neuhauser <ne...@bellavista.cz> on 2003/07/10 13:24:41 UTC
$2 in start-commit empty
I guess this this email shows my ignorance, but having found a little
bit more than nothing in the book, I figured I'd ask.
I'm accessing a repository over the svn: protocol, and it looks like
start-commit only receives one argument, or $2 is null.
1. Is this correct?
2. Under what circumstances is it supposed to contain a username?
My start-commit:
#!/bin/sh
REPOS="$1"
USER="$2"
echo "@: '$@'" > /dev/stderr
echo "REPOS: '$REPOS'" > /dev/stderr
echo "USER: '$USER'" > /dev/stderr
exit 15
roman@freepuppy ~/tmp 1078:0 > svn import svn://localhost/repos . -m 'test'
svn: A repository hook failed.
svn: 'start-commit' hook failed with error output:
@: '/home/svn/repos '
REPOS: '/home/svn/repos'
USER: ''
roman@freepuppy ~/tmp 1078:1 >
--
If you cc me or remove the list(s) completely I'll most likely ignore
your message. see http://www.eyrie.org./~eagle/faqs/questions.html
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: $2 in start-commit empty
Posted by Roman Neuhauser <de...@bellavista.cz>.
# mwood@its.uct.ac.za / 2003-07-11 10:19:56 +0200:
> On Thu, Jul 10, 2003 at 10:24:40AM -0500, Ben Collins-Sussman wrote:
> > dev@subversion.tigris.org writes:
> > > roman@freepuppy ~/tmp 1089:0 > svn import svn+ssh://localhost/usr/home/svn/repos . -m 'initimport'
> > > socket: Protocol not supported
> >
> > "protocol not supported"? What's that?
>
> I would guess this has to do with an IPv6 address for localhost being in
> /etc/hosts. ssh would try the IPv6 address and, if the system doesn't
> support IPv6 this would fail. ssh would then try the IPv4 address.
spot on!
> > > roman@localhost's password:
> > > svn: Couldn't find a repository
> > > svn: No repository found in 'svn+ssh://localhost/usr/home/svn/repos'
> >
> > /usr/home/svn/repos == /home/svn/repos ?
>
> On some systems (e.g. FreeBSD), yes.
>
> Could this be a permissions problem? Does user "roman" have write
> access to everything in /usr/home/svn/repos?
and, ditto. what an idiot I am... my only defence is the fact that
the problem was not so obvious from the error message. weak, I know.
thanks a lot, and sorry for the noise!
--
If you cc me or remove the list(s) completely I'll most likely ignore
your message. see http://www.eyrie.org./~eagle/faqs/questions.html
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: $2 in start-commit empty
Posted by Michael Wood <mw...@its.uct.ac.za>.
On Thu, Jul 10, 2003 at 10:24:40AM -0500, Ben Collins-Sussman wrote:
> dev@subversion.tigris.org writes:
>
> > roman@freepuppy ~/tmp 1086:0 > sudo svnserve -dr /home/svn/repos
> > roman@freepuppy ~/tmp 1087:0 > svn import svn://localhost/repos . -m 'initimport'
> > svn: A repository hook failed.
> > svn: 'start-commit' hook failed with error output:
> > @: '/home/svn/repos '
> > PWD: ''
> > pwd: '/'
> > REPOS: '/home/svn/repos'
> > USER: ''
> >
> > roman@freepuppy ~/tmp 1088:1 > sudo killall svnserve
>
> No need to kill the svnserve daemon; your ssh process will
> create/destroy a private svnserve process of its own. It won't
> interfere with the daemon.
Yes, but you might want to if you're not going to use it :)
> > roman@freepuppy ~/tmp 1089:0 > svn import svn+ssh://localhost/usr/home/svn/repos . -m 'initimport'
> > socket: Protocol not supported
>
> "protocol not supported"? What's that?
I would guess this has to do with an IPv6 address for localhost being in
/etc/hosts. ssh would try the IPv6 address and, if the system doesn't
support IPv6 this would fail. ssh would then try the IPv4 address.
> > roman@localhost's password:
> > svn: Couldn't find a repository
> > svn: No repository found in 'svn+ssh://localhost/usr/home/svn/repos'
>
> /usr/home/svn/repos == /home/svn/repos ?
On some systems (e.g. FreeBSD), yes.
Could this be a permissions problem? Does user "roman" have write
access to everything in /usr/home/svn/repos?
--
Michael Wood <mw...@its.uct.ac.za>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: $2 in start-commit empty
Posted by Ben Collins-Sussman <su...@collab.net>.
dev@subversion.tigris.org writes:
> roman@freepuppy ~/tmp 1086:0 > sudo svnserve -dr /home/svn/repos
> roman@freepuppy ~/tmp 1087:0 > svn import svn://localhost/repos . -m 'initimport'
> svn: A repository hook failed.
> svn: 'start-commit' hook failed with error output:
> @: '/home/svn/repos '
> PWD: ''
> pwd: '/'
> REPOS: '/home/svn/repos'
> USER: ''
>
> roman@freepuppy ~/tmp 1088:1 > sudo killall svnserve
No need to kill the svnserve daemon; your ssh process will
create/destroy a private svnserve process of its own. It won't
interfere with the daemon.
> roman@freepuppy ~/tmp 1089:0 > svn import svn+ssh://localhost/usr/home/svn/repos . -m 'initimport'
> socket: Protocol not supported
"protocol not supported"? What's that?
> roman@localhost's password:
> svn: Couldn't find a repository
> svn: No repository found in 'svn+ssh://localhost/usr/home/svn/repos'
/usr/home/svn/repos == /home/svn/repos ?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: $2 in start-commit empty
Posted by de...@subversion.tigris.org.
# sussman@collab.net / 2003-07-10 08:28:10 -0500:
> Roman Neuhauser <ne...@bellavista.cz> writes:
> > I'm accessing a repository over the svn: protocol, and it looks like
> > start-commit only receives one argument, or $2 is null.
>
> svn:// access is unauthenticated, so there's no username. That's why
> $2 is empty. If you want authentication, use svn+ssh:// instead.
>
> Read the section on 'svnserve' in chapter 5 on the book for detailed
> explanation.
Ok, I followed the instructions in "Setting Up SSH Access":
"In this scenario, each time the client attempts to contact the
Subversion repository, a new svnserve process is started on the
server machine by a local SSH process. There's no need to run a
standalone svnserve daemon?the client's authenticated SSH connection
launches a private svnserve process on the server machine, running
as the authenticated user."
roman@freepuppy ~/tmp 1086:0 > sudo svnserve -dr /home/svn/repos
roman@freepuppy ~/tmp 1087:0 > svn import svn://localhost/repos . -m 'initimport'
svn: A repository hook failed.
svn: 'start-commit' hook failed with error output:
@: '/home/svn/repos '
PWD: ''
pwd: '/'
REPOS: '/home/svn/repos'
USER: ''
roman@freepuppy ~/tmp 1088:1 > sudo killall svnserve
roman@freepuppy ~/tmp 1089:0 > svn import svn+ssh://localhost/usr/home/svn/repos . -m 'initimport'
socket: Protocol not supported
roman@localhost's password:
svn: Couldn't find a repository
svn: No repository found in 'svn+ssh://localhost/usr/home/svn/repos'
roman@freepuppy ~/tmp 1090:1 >
I'm not sure what I screwed this time.
--
The From: header's been munged to get rid of unwanted cc's.
My real address: neuhauser@bellavista.cz.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: $2 in start-commit empty
Posted by Ben Collins-Sussman <su...@collab.net>.
Roman Neuhauser <ne...@bellavista.cz> writes:
> I'm accessing a repository over the svn: protocol, and it looks like
> start-commit only receives one argument, or $2 is null.
svn:// access is unauthenticated, so there's no username. That's why
$2 is empty. If you want authentication, use svn+ssh:// instead.
Read the section on 'svnserve' in chapter 5 on the book for detailed
explanation.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org