to 1: i used the templates in the hook directory. I copied
post-commit.tmpl to post-commit, then chmod +x. the strange thing is
that the start-commit gets fired.
to 2: the path stuff is not my problem. the script would produce an
error if there is something wrong with it, but it simply doesn't get
executed. is there a way to disable post-commit in subversion gernerally?
Rahul Bhargava schrieb:
> Hi:
>
> 1. Have you installed the hook in your repos/hook dir ?
> 2. From SVN manual: For security reasons, the Subversion repository
> executes hook scripts with an empty environment-that is, no environment
> variables are set at all, not even $PATH or %PATH%. Because of this, a lot
> of administrators are baffled when their hook script runs fine by hand, but
> doesn't work when run by Subversion. Be sure to explicitly set environment
> variables in your hook and/or use absolute paths to programs.
>
>
> Rahul Bhargava
> Subversion, CVS Solutions
> http://www.wandisco.com
>
> ----- Original Message -----
> From: "Andreas Adelsberger | [amp] - Adelsberger Media Productions"
> <office@a-m-p.at>
> To: <users@subversion.tigris.org>
> Sent: Monday, April 10, 2006 10:21 PM
> Subject: post-commit hook not working
>
>
>> hi!
>>
>> my post-commit hook doesn't get executed!
>>
>> here is my post-commit:
>>
>>
>> /usr/bin/svn export http://svnserver/testrepository
>> /var/www/html/testrepository
>>
>>
>> if I start it manually with
>> ./post-commit
>> everything works fine, but If I do a commit with toroisesvn, I don't get
>> errors but the hook script is not fired.
>>
>> any ideas how i can fix that, the permissions seem to be correct.
>>
>> thanx a lot
>> andi a
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>> For additional commands, e-mail: users-help@subversion.tigris.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 12 07:14:09 2006