[Fusionforge-general] How to email SCM commits ?
Michael Kluge
michael.kluge at tu-dresden.de
Tue Feb 12 13:12:12 CET 2013
Hmm. Could you please take a look at the "post-commit" file in one of the
../chroot/scmrepos/svn/<unix project name>/hooks/
directories?
Mine have the following entries for SVN post commit emails:
#begin added by svncommitemail
/usr/bin/php -d
include_path=/usr/share/php:/etc/gforge/custom:/etc/gforge:.:/usr/share/gforge/common:/usr/share/gforge/www:/usr/share/gforge/plugins:/usr/share/gforge:/usr/share/gforge/www/include:/usr/share/gforge/common/include:/usr/share/php:/usr/share/pear
/usr/share/gforge/plugins/svncommitemail/bin/commit-email.php
/var/lib/gforge/chroot/scmrepos/svn/<unix-project-name> "$2"
xyz-commits at fusionforge.zih.tu-dresden.de
#end added by svncommitemail
It might be that I added path names to the include_path in this command.
There is probably a global template for this, but I need to scratch my
head to find it again ... It's been a while. It might also be that the
svncommitemail plugin creates the "post-commit" file and you have to
adjist stuff in there.
Regards, Michael
> What's really strange is that if I run it by hand on the server, I get
> the right result :
>
> /usr/bin/php -d
> include_path=/usr/share/php-htmlpurifier/library:/etc/gforge//custom:/etc/gforge/:/usr/share/gforge/common:/usr/share/gforge/www:/usr/share/gforge/plugins:/usr/share/gforge:/usr/share/gforge/www/include:/usr/share/gforge/common/include:.:/usr/share/php:/usr/share/pear
> /usr/share/gforge/plugins/scmhook/library/scmsvn/hooks/commitemail/commit-email.php
> "/var/lib/gforge/chroot/scmrepos/svn/test4" "2"
> test4-commits at lists.foundry.supelec.fr
> <mailto:test4-commits at lists.foundry.supelec.fr>
>
> I'm stuck. The only explanation I can see is that when svn runs the job,
> it acts as www-data, and that prevents php to find this function (ie:
> wrong error message).
>
> Fabrice
--
Dr.-Ing. Michael Kluge
Technische Universität Dresden
Center for Information Services and
High Performance Computing (ZIH)
D-01062 Dresden
Germany
Contact:
Willersbau, Room A 208
Phone: (+49) 351 463-34217
Fax: (+49) 351 463-37773
e-mail: michael.kluge at tu-dresden.de
WWW: http://www.tu-dresden.de/zih
More information about the Fusionforge-general
mailing list