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  b816995a57746cb927b419e00dd847dc03980cd5 (commit)
      from  54fcd72f22ac61f57088649450421ce06a7c58d5 (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=b816995a57746cb927b419e00dd847dc03980cd5

commit b816995a57746cb927b419e00dd847dc03980cd5
Author: Franck Villaume <[email protected]>
Date:   Mon Apr 22 15:14:41 2019 +0200

    fix anonscm URL in gitweb.conf

diff --git a/src/plugins/scmgit/common/GitPlugin.class.php 
b/src/plugins/scmgit/common/GitPlugin.class.php
index a9b34c6..37d3254 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -610,7 +610,7 @@ control over it to the project's administrator.");
                $rootdir = forge_get_config('repos_path', 'scmgit');
                fwrite($f, "\$projectroot = '$rootdir';\n");
                fwrite($f, "\$projects_list = '$config_dir/gitweb.list';\n");
-               fwrite($f, "\$anon_clone_url = '". 
util_make_url('/anonscm/git') . "';\n");
+               fwrite($f, "\$anon_clone_url = 
'".forge_get_config('scm_host').'/anonscm/git'. "';\n");
                fwrite($f, "\$logo = '". 
util_make_url('/plugins/scmgit/git-logo.png') . "';\n");
                fwrite($f, "\$favicon = '". 
util_make_url('/plugins/scmgit/git-favicon.png')."';\n");
                fwrite($f, "\$stylesheet = '". 
util_make_url('/plugins/scmgit/gitweb.css')."';\n");
@@ -624,7 +624,7 @@ control over it to the project's administrator.");
 
                fwrite($f, "\$per_request_config = sub {\n");
 
-               fwrite($f, "push @git_base_url_list, qq,". 
util_make_url('/anonscm/git') .",;\n");
+               fwrite($f, "push @git_base_url_list, 
qq,".forge_get_config('scm_host').'/anonscm/git'.",;\n");
 
                $protocol = forge_get_config('use_ssl', 'scmgit')? 'https' : 
'http';
                if (forge_get_config('use_smarthttp', 'scmgit')) {

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

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


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to