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 b240e65c542eb05f372f4767021ca728f0358af8 (commit)
from 4d55014dab558d3d0f5cca1ee784c448c9aa1385 (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=b240e65c542eb05f372f4767021ca728f0358af8
commit b240e65c542eb05f372f4767021ca728f0358af8
Author: Franck Villaume <[email protected]>
Date: Fri Jul 1 13:28:37 2016 +0200
scmgit: fix get activity on private project
diff --git a/src/plugins/scmgit/common/GitPlugin.class.php
b/src/plugins/scmgit/common/GitPlugin.class.php
index b99039a..be8bee7 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -970,16 +970,16 @@ control over it to the project's administrator.");
return false;
}
if (in_array('scmgit', $params['show']) ||
(count($params['show']) < 1)) {
- $start_time = $params['begin'];
- $end_time = $params['end'];
-
- // Grab commit log
- $protocol = forge_get_config('use_ssl', 'scmgit') ?
'https://' : 'http://';
- $u = session_get_user();
- if ($project->enableAnonSCM())
+ if ($project->enableAnonSCM()) {
$server_script = '/anonscm/gitlog';
- else
+ } elseif (session_loggedin()) {
+ $u = session_get_user();
$server_script =
'/authscm/'.$u->getUnixName().'/gitlog';
+ } else {
+ return false;
+ }
+ // Grab commit log
+ $protocol = forge_get_config('use_ssl', 'scmgit') ?
'https://' : 'http://';
$script_url = $protocol . forge_get_config('scm_host')
. $server_script
.'?unix_group_name='.$project->getUnixName()
-----------------------------------------------------------------------
Summary of changes:
src/plugins/scmgit/common/GitPlugin.class.php | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits