[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: Doug Goldstein <doug_at_monetra.com>
Date: 2007-02-09 21:14:02 CET

Ryan Schmidt wrote:
>
> 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...
>
>

Yes, if I delete that pre-commit file my commits succeed.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 9 21:14:26 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.