> 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