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.1 has been updated
       via  b2a212f527521080273c84143b870fbeb6a37f57 (commit)
      from  03e8501be8aa977f24f85dd80020ce8ab208787f (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=b2a212f527521080273c84143b870fbeb6a37f57

commit b2a212f527521080273c84143b870fbeb6a37f57
Author: Franck Villaume <[email protected]>
Date:   Sat Jan 20 14:17:48 2018 +0100

    use_shell_limited: implement scmsvn support

diff --git a/src/plugins/scmsvn/common/SVNPlugin.class.php 
b/src/plugins/scmsvn/common/SVNPlugin.class.php
index 0c3db7c..078516f 100644
--- a/src/plugins/scmsvn/common/SVNPlugin.class.php
+++ b/src/plugins/scmsvn/common/SVNPlugin.class.php
@@ -165,7 +165,11 @@ some control over it to the project's administrator.");
                                if (forge_get_config('ssh_port') != 22) {
                                        $ssh_port = 
'--config-option="config:tunnels:ssh=ssh -p '.forge_get_config('ssh_port').'" ';
                                }
-                               $b .= '<p><span class="tt">svn 
'.$ssh_port.'checkout 
svn+ssh://'.$d.'@'.$this->getBoxForProject($project).$this->svn_root_fs .'/'. 
$project->getUnixName().$module.'</span></p>' ;
+                               if (forge_get_config('use_shell_limited')) {
+                                       $b .= '<p><span class="tt">svn 
'.$ssh_port.'checkout 
svn+ssh://'.$d.'@'.$this->getBoxForProject($project).'/'.$project->getUnixName().$module.'</span></p>'
 ;
+                               } else {
+                                       $b .= '<p><span class="tt">svn 
'.$ssh_port.'checkout 
svn+ssh://'.$d.'@'.$this->getBoxForProject($project).$this->svn_root_fs .'/'. 
$project->getUnixName().$module.'</span></p>' ;
+                               }
                                $b .= '</div>';
                        }
                        if (forge_get_config('use_dav', 'scmsvn')) {
@@ -190,7 +194,11 @@ some control over it to the project's administrator.");
                                if (forge_get_config('ssh_port') != 22) {
                                        $ssh_port = 
'--config-option="config:tunnels:ssh=ssh -p '.forge_get_config('ssh_port').'" ';
                                }
-                               $b .= '<p><span class="tt">svn 
'.$ssh_port.'checkout 
svn+ssh://<i>'._('developername').'</i>@'.$this->getBoxForProject($project).$this->svn_root_fs
 .'/'.$project->getUnixName().$module.'</span></p>';
+                               if (forge_get_config('use_shell_limited')) {
+                                       $b .= '<p><span class="tt">svn 
'.$ssh_port.'checkout 
svn+ssh://<i>'._('developername').'</i>@'.$this->getBoxForProject($project).'/'.$project->getUnixName().$module.'</span></p>';
+                               } else {
+                                       $b .= '<p><span class="tt">svn 
'.$ssh_port.'checkout 
svn+ssh://<i>'._('developername').'</i>@'.$this->getBoxForProject($project).$this->svn_root_fs
 .'/'.$project->getUnixName().$module.'</span></p>';
+                               }
                                $b .= '</div>';
                        }
                        if (forge_get_config('use_dav', 'scmsvn')) {

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

Summary of changes:
 src/plugins/scmsvn/common/SVNPlugin.class.php | 12 ++++++++++--
 1 file changed, 10 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