[Fusionforge-commits] FusionForge branch 6.0 updated. f8de96da516e8bfc128bcfa0b9dc0c6ab25edc75

Roland Mas lolando at fusionforge.org
Thu Mar 5 16:50:53 CET 2015


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  f8de96da516e8bfc128bcfa0b9dc0c6ab25edc75 (commit)
      from  66c704c5ebc0e0bf31e68b460b7d4ca4ec5c8a50 (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 -----------------------------------------------------------------
commit f8de96da516e8bfc128bcfa0b9dc0c6ab25edc75
Author: Roland Mas <lolando at debian.org>
Date:   Thu Mar 5 16:39:03 2015 +0100

    Use new URL for gitweb

diff --git a/src/plugins/scmgit/common/GitPlugin.class.php b/src/plugins/scmgit/common/GitPlugin.class.php
index ef7382c..233e1a8 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -292,7 +292,9 @@ control over it to the project's administrator.");
 			}
 
 			if ($project->enableAnonSCM()) {
-				$iframesrc = util_make_uri('/plugins/scmgit/cgi-bin/gitweb.cgi?p='.$repo);
+				$protocol = forge_get_config('use_ssl', 'scmgit')? 'https' : 'http';
+				$box = $this->getBoxForProject($project);
+				$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';

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

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


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list