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  99f16c859c2971bfd6700df12e5d3b5dd4435f5d (commit)
      from  1f8c530591e32a9e4ac3fcb08bf467f78e80748a (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=99f16c859c2971bfd6700df12e5d3b5dd4435f5d

commit 99f16c859c2971bfd6700df12e5d3b5dd4435f5d
Author: Franck Villaume <franck.villa...@trivialdev.com>
Date:   Tue Aug 8 10:00:04 2017 +0000

    less code

diff --git a/src/plugins/scmgit/common/GitPlugin.class.php 
b/src/plugins/scmgit/common/GitPlugin.class.php
index ee86915..189fe07 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -306,14 +306,12 @@ control over it to the project's administrator.");
                                $repo = 
$project->getUnixName().'/'.$project->getUnixName().'.git';
                        }
 
+                       $protocol = forge_get_config('use_ssl', 'scmgit')? 
'https' : 'http';
+                       $box = forge_get_config('scm_host');
                        if ($project->enableAnonSCM()) {
-                               $protocol = forge_get_config('use_ssl', 
'scmgit')? 'https' : 'http';
-                               $box = forge_get_config('scm_host');
                                $iframesrc = 
"$protocol://$box/anonscm/gitweb/?p=$repo";
                        } elseif (session_loggedin()) {
                                $logged_user = 
user_get_object(user_getid())->getUnixName();
-                               $protocol = forge_get_config('use_ssl', 
'scmgit')? 'https' : 'http';
-                               $box = forge_get_config('scm_host');
                                $iframesrc = 
"$protocol://$box/authscm/$logged_user/gitweb/?p=$repo";
                        }
                        if ($params['commit']) {

-----------------------------------------------------------------------

Summary of changes:
 src/plugins/scmgit/common/GitPlugin.class.php | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
Fusionforge-commits@lists.fusionforge.org
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to