Cotton wrote:
> Hi all,
>
> I'm trying to work out this svnsync problem to sync w/ a mirror repo
> that trac is running on... everything is working fine when I run
> "svnsync sync svn://mirror/repo" from the command line, but the
> post-commit hook isn't authenticating to my source repo. SVN is
> running as the apache user, and I don't know how to cache the auth
> information like it is cached when running on the console. The output
> of the command in post-commit is http://dpaste.com/55009/ . Anyone
> had any experience with this??
>
> My post-commit file is simply: svnsync sync svn://mirror/repo & (with
> the shabang of course)
>
> TIA,
> Cotton
The hook scripts run in an empty environment, so they have no access to
the authn cache or your configuration files.
You can use the --sync-username and --sync-password options to 'svnsync
sync' to make it use other credentials.
For the missing CA certificate, use the option '--config-dir' to point
the directory containing your 'servers' file (as in
.subversion/servers). In the servers file, set ssl-authority-files to
point to your CACert authority key. This I've never tried, but it should
work.
hth,
Lieven
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-13 21:16:50 CEST