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

Re: post-commit hook not working

From: Andreas Adelsberger | [amp] - Adelsberger Media Productions <office_at_a-m-p.at>
Date: 2006-04-12 07:12:45 CEST

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

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.