You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Stan Devyatovsky <st...@devyatovsky.com> on 2004/06/18 15:27:57 UTC
can't manage to make post-commit hook script work
Hello,
Can't manage to make post-commit hook script work.
I have created sample repository named 'test', with the path:
'/svnroot/test'.
I have followed the instructions in the documentation, I have renamed
'/svnroot/test/hooks/post-commit.tmpl' into
'/svnroot/test/hooks/post-commit' and chmodded it to 0777 to make
sure it's executable.
I have uploaded commit-email.pl to the hooks directory.
I have then manually run '/svnroot/test/hooks/post-commit' and it worked
fine (I receive mail alright).
However when I commit changes to 'test' repository, there is no
reaction at all, I receive nothing in my mail.
I'm running svnserve in daemon mode on my local FreeBSD server.
I'm committing changes from Windows XP client machine.
Would appreciate any help on this.
--
Best regards,
Stan mailto:stan@devyatovsky.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: can't manage to make post-commit hook script work
Posted by Travis P <sv...@castle.fastmail.fm>.
On Jun 18, 2004, at 10:54 AM, Ben Collins-Sussman wrote:
> Most of the time, people have problem with hook scripts because they
> assume that if you can run the script by hand, it will work when
> svnserve or apache executes it. But usually svnserve and apache
> execute
> the script in anemic environments.
Along that same line of thought, users testing hook scripts might want
to using the 'env' command with the '-i' flag to give their hand-run
tests a nice anemic environment. ('env' being standard for *nix-like
OSes.)
-Travis
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: can't manage to make post-commit hook script work
Posted by Ben Collins-Sussman <su...@collab.net>.
On Fri, 2004-06-18 at 10:27, Stan Devyatovsky wrote:
> However when I commit changes to 'test' repository, there is no
> reaction at all, I receive nothing in my mail.
1. Start simple. Write hook script that does nothing but "echo 'blah'
>> /tmp/testfile'. That way you can verify that svnserve is actually
running the script.
2. Get more complex. Run the script by hand and verify that mail is
being sent, or whatever. Debug that.
3. Use absolute paths to everything. Assume you have no environment
variables at all.
Most of the time, people have problem with hook scripts because they
assume that if you can run the script by hand, it will work when
svnserve or apache executes it. But usually svnserve and apache execute
the script in anemic environments.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org