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

Server Hooks not working

From: Florian Engelhardt <f.engelhardt_at_21torr.com>
Date: 2005-05-20 11:47:34 CEST

Hello,

we have a gentoo-box running with a subversion server on it.
All developers a login on to this box via svn://servername
no http, no ssh. For this to work we have the svnserv daemon running.
Since one or two weeks, we have a problem with the hooks. They are not
working anymore, none of them.
For example: The post-commit hook should call a php script, that does
automaticaly update our stages.

svn@svn hooks $ l
total 96
drwxr-xr-x 2 svn svn 4096 May 18 16:13 autocheckout
-rw-r--r-- 1 svn svn 64369 May 13 17:40 error_log
-rwxrwxrwx 1 svn svn 1508 May 20 11:34 post-commit
-rw-r--r-- 1 svn svn 1411 Feb 22 15:20 post-commit.tmpl
-rw-r--r-- 1 svn svn 1475 Feb 22 15:20 post-revprop-change.tmpl
-rw-r--r-- 1 svn svn 2330 Feb 22 15:20 pre-commit.tmpl
-rw-r--r-- 1 svn svn 1952 Feb 22 15:20 pre-revprop-change.tmpl
-rw-r--r-- 1 svn svn 1533 Feb 22 15:20 start-commit.tmpl

The post-commit script has permissions 777, so i gues it should be
called, but the php script that should be called seems not to be
executed.

#!/bin/sh

# POST-COMMIT HOOK

REPOS="$1"
REV="$2"

/usr/bin/php /SVN/test/hooks/autocheckout/autocheckout.php "$REPOS" "$REV" 2>&1 >> /SVN/test/hooks/error_log

exit 0

That should work, i also tried to call the script manualy and that
did work, but it seems to me, that the post-commit hook gets not
called from subversion.

svn@svn hooks $ svnserve --version
svnserve, version 1.1.3 (r12730)
   compiled Feb 8 2005, 12:00:29

Copyright (C) 2000-2004 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

I also added the following line to the post-commit hook:

echo "hello" >> /SVN/test/hooks/error_log

But there is no "hello" in that file :(

Sorry for my lack of english skills, i hope you understand
the problem that we have.

Kind Regards

Florian Engelhardt

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri May 20 11:45:59 2005

This is an archived mail posted to the Subversion Users mailing list.