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

Svnsync in post-commit hook doesnt do a thing

From: Mala Dibbs <griori-mala_at_yahoo.de>
Date: Thu, 08 Oct 2009 14:04:24 +0200

Hi,

this is my post-commit hook:

#!/bin/sh
/usr/bin/svnsync synchronize https://example.net/svn/test --non-interactive \
        --username=svnsync --password=\!svn4995 >/dev/null 2>/dev/null &
exit 0

It is chowned to www-data and has chmod +x.

Unfortunately it does not syncronize the mirror automatically after each commit.
It doesnt do anything. Yet it works, when i call it manually with ./post-commit

What could be the problem here? Where do i find verbose logging?
(apache2/error.log does not show anything abnormal).

The only thing I could think of which brings the process to fail is the
untrusted SSL certificate on the mirror (self-signed, wrong domain). When I ran
svnsync for the first time (manually) I accepted the certificate permanently but
since the post-commit hook is executed without any environment variables, the
hook might just not know about the certificate exception and won't connect to
the mirror.

Is that possible? How could I fix that?

Greets, Mala

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

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