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

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

From: Giulio Troccoli <giulio.troccoli_at_uk.linedata.com>
Date: Tue, 18 Aug 2009 15:52:52 +0100

> 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?
>

Might the problem be that you used double quotes (") for the USER variable and single quotes (') for the actual name?

Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-18 16:53:48 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.