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

Re: Subversion Hooks Issue

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-02-09 20:15:41 CET

On Feb 9, 2007, at 12:25, Doug Goldstein wrote:

> 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.

And if you delete the pre-commit hook, then commits succeed? You're
sure you're dealing with the correct pre-commit file (and not perhaps
a pre-commit hook in a different unrelated repository)? I'm sure you
are, I'm just not sure what else to suggest...

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 9 20:16:14 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.