This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 17f1e000356cd0c043d00bf299040d5eed77b5be (commit)
from a2e207931ecb6c4e511b9ae1dcefc38741b9a0e2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=17f1e000356cd0c043d00bf299040d5eed77b5be
commit 17f1e000356cd0c043d00bf299040d5eed77b5be
Author: Franck Villaume <[email protected]>
Date: Thu Sep 7 08:57:34 2017 +0000
scmhg plugin: fix stats gathering
diff --git a/src/plugins/scmhg/common/HgPlugin.class.php
b/src/plugins/scmhg/common/HgPlugin.class.php
index eb00607..01a515f 100644
--- a/src/plugins/scmhg/common/HgPlugin.class.php
+++ b/src/plugins/scmhg/common/HgPlugin.class.php
@@ -508,6 +508,15 @@ Offer DAV or SSH access.");
return false;
}
+ // since cronjobs are running as root, we need to trust apache
user
+ if (!is_file('/root/.hgrc')) {
+ echo 'creation fichier'."\n";
+ $trustdata = '[trusted]'.PHP_EOL.'users =
'.forge_get_config('apache_user').PHP_EOL;
+ $f = fopen('/root/.hgrc', 'w');
+ fwrite($f, $trustdata);
+ fclose($f);
+ }
+
if ($params['mode'] == 'day') {
db_begin();
$year = $params['year'];
-----------------------------------------------------------------------
Summary of changes:
src/plugins/scmhg/common/HgPlugin.class.php | 9 +++++++++
1 file changed, 9 insertions(+)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits