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

svnsync docs - start-commit hook does not work as described

From: Dennis Schridde <devurandom_at_gmx.net>
Date: Tue, 18 Aug 2009 16:48:02 +0200

Hello!

It seems that the svnsync docs[1] are outdated.
They say: "you may want to add a start-commit hook script that disallows
commits from users other than the one you run svnsync as".
But the following "start-commit" hook makes the sync process fail, even though
to my opinion it conforms with the abovementioned part of the docs:

#!/bin/sh
USER="$3"
[[ "$USER" = 'svnsync' ]] && exit 0
echo 'Only the svnsync user can commit' >&2
exit 1

(Essentially the same script as printed in the "Basic Setup" part of the
docs[1].)

Enabling this hook results in the not-very-descriptive error message:
"svnsync: Error retrieving replay REPORT (165001): APR does not understand
this error code"

The used commandline is:
# svnsync sync --sync-username=svnsync file:///path/to/mirror/repos

Can someone confirm this issue?

Regards,
Dennis

[1] http://svn.collab.net/repos/svn/branches/1.6.x/notes/svnsync.txt

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2384789

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].

Received on 2009-08-18 16:49:56 CEST

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.