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

Re: How to enable the hook scripts located on /path/to/repos/hook

From: Penghui Wang <wangpenghui_at_realss.com>
Date: 2005-04-11 08:59:08 CEST

On Mon, 2005-04-11 at 16:17 +1000, Steve Williams wrote:
> Penghui Wang wrote:
> > 1. cp commit_email.pl which provided by subversion document
> > to /path/to/repos/hooks.
> > 2. chmod +x commit_email.pl
> > 3. mv post_commit.tmpl to post_commit and modify it to:
> > ./commit_email.pl "$REPOS" "$REV" --from subversion@example.com
> > wangpenghui@example.com then chmod +x post_commit.
> >
> > But if i commit some changes to the repos, nothing happened.
> >
> > What's wrong with my installation, or missing some configuration?
>
> Try using the full path. "./commit_email.pl" will not work because
> there is no environment passed from server to hook.
>

Follow your suggestion, it works now. Thanks for your help.

In the post_commit

===wrong===
commit_email.pl
./commit_email.pl

===correct===
/absolute/path/to/commit_email.pl

Wang.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Apr 11 09:01:46 2005

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.