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

Problem with hooks

From: <flo.wagner_at_gmx.de>
Date: 2002-08-13 16:26:46 CEST

Hi!
I've successfully set up subversion on my Linux(LFS 3.0 or something like that) machine.
I can import, commit, update, everything. But the hooks are not working. As soon as I
have one of the hook files in my repos/hooks directory I get error messages.

"/svn/repos1/hooks/post-commit":
#!/bin/sh

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

Then I, for example do a "svn del" from my windows machine and it tells my:

svn: A repository hook failed.
svn: MERGE request failed on /repos
svn:
run_post_commit_hook: error running cmd `/svn/repos1/hooks/post-commit'

Apache error_log:

[Tue Aug 13 16:24:04 2002] [error] [client 192.168.1.50] Could not MERGE resource
"/repos/!svn/act/dc8d1617-7a92-5144-b117-c3b5f5411337" into "/repos". [409, #0]
[Tue Aug 13 16:24:04 2002] [error] [client 192.168.1.50] An error occurred while
committing the transaction. [409, #21090]
[Tue Aug 13 16:24:04 2002] [error] [client 192.168.1.50] (2)No such file or directory:
run_post_commit_hook: error running cmd `/svn/repos1/hooks/post-commit' [409, #21090]

The file "/svn/repos1/hooks/post-commit" does exist and the delete works(file gets
deleted from repository). But the hook script doesn't get executed(tried to let the
script touch /file, file doesn't get created).

What am I doing wrong?

Thanks for your help!

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 13 16:27:57 2002

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.