Several things to look for:
* post-commit calls "commit-email.pl"
* post-commit has execute permission
* post-commit has the correct shebang on top (I had mine as #!
/usr/bin/perl, but it should have been #! /bin/perl).
* You have the full PATH in for your commit-email.pl program in the
post-commit script because Subversion clears out the PATH variable
before calling post-commit.
Here's a trick you can do: Make sure that the post-commit script exits
with a status of "2" instead of "0". That way, Subversion will detect
a failure and send you the output of STDERR.
On 8/23/05, Burgan, DeborahX <deborahx.burgan@intel.com> wrote:
>
> I have setup the commit-email.pl and the post-commit file with the
> appropriate information and if I enter this from a cmd line
>
> [servername:/nfs/dp/proj/vt/itp/svn/repos/source/hooks] >>perl
> commit-email.pl /nfs/dp/proj/vt/itp/svn/repos/source 800 -s
> SVN:project-source deborahx.burgan@intel.com
>
> It works great but when we checkin code it doesn't work automatically.
> Is there something else I need to do?
>
> commet-email.pl
> # Sendmail path.
> my $sendmail = "/usr/sbin/sendmail";
>
> # Svnlook path.
> my $svnlook = "/nfs/dp/proj/vt/itp/svn/SubVersion/bin/svnlook";
>
> post-commit
> REPOS="$1"
> TXN="$2"
>
> commit-email.pl "$REPOS" "$REV" -s SVN: deborahx.burgan@intel.com
>
>
>
> Thanks
>
> Debbie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
--
--
David Weintraub
qazwart@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 23 21:06:04 2005