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

Subversion Hooks Issue

From: Doug Goldstein <doug_at_monetra.com>
Date: 2007-02-09 19:25:23 CET

I'm trying to implement a pre-commit hook on my subversion repo.
However, it never works. I've reduced it down to a simple test case as
follows:

#!/bin/sh
exit 0

I am using svn+ssh:// for access so my user exists as an actual account
on the machine.

As per the the following:
http://subversion.tigris.org/faq.html#hook-debugging

I've ssh'd into the box and executed:

$ env - /var/data/svn/project/hooks/pre-commit
$ echo $?
0

So the script works successfully from the command line. I have
permission to execute the script.

But attempting to commit results in the following error:

Transmitting file data .svn: Commit failed (details follow):
svn: 'pre-commit' hook failed with error output:

Any suggestions would be very helpful.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 9 19:25:53 2007

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.