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, 6.0 has been updated
via 8431ad047ebd53c248ad376a3683e5b1d71444a1 (commit)
from 7b4568bcd6967dbff1fc57a18dfb6e47b4f5c187 (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=8431ad047ebd53c248ad376a3683e5b1d71444a1
commit 8431ad047ebd53c248ad376a3683e5b1d71444a1
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 31e8f78..9aebd16 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -964,16 +964,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