X-Git-Url: https://scm.fusionforge.org/anonscm/gitweb?p=fusionforge%2Ffusionforge.git;a=blobdiff_plain;f=gforge%2Fplugins%2Fscmcvs%2Fcommon%2FCVSPlugin.class.php;h=ae8f47d9eaa1c84f0188e83f37e713444349b5b1;hp=ed4bfe13ee2e6c5b11178892d69bd7e1dbf10638;hb=0031f3ec68344e960f168b23fa283b76dbf6c67d;hpb=3b954917538100bb6bca02cce246cf152cf66c9f diff --git a/gforge/plugins/scmcvs/common/CVSPlugin.class.php b/gforge/plugins/scmcvs/common/CVSPlugin.class.php index ed4bfe13ee..ae8f47d9ea 100644 --- a/gforge/plugins/scmcvs/common/CVSPlugin.class.php +++ b/gforge/plugins/scmcvs/common/CVSPlugin.class.php @@ -89,12 +89,21 @@ class CVSPlugin extends SCMPlugin { function getInstructionsForRW ($project) { $cvsrootend = $project->getSCMBox().':'.$this->cvs_root.'/'.$project->getUnixName(); - $b = _('
Developer CVS Access via SSH
Only project developers can access the CVS tree via this method. SSH must be installed on your client machine. Substitute modulename and developername with the proper values. Enter your site password when prompted.
'); - $b .= '+ if (session_loggedin()) { + $u =& user_get_object(user_getid()) ; + $d = $u->getUnixName() ; + $b = _('
Developer CVS Access via SSH
Only project developers can access the CVS tree via this method. SSH must be installed on your client machine. Substitute modulename with the proper value. Enter your site password when prompted.
'); + $b .= '
+ export CVS_RSH=ssh
+ cvs -d :ext:'.$d.'@'.$cvsrootend.' checkout '._('modulename').'
+
Developer CVS Access via SSH
Only project developers can access the CVS tree via this method. SSH must be installed on your client machine. Substitute modulename and developername with the proper values. Enter your site password when prompted.
'); + $b .= '
export CVS_RSH=ssh
cvs -d :ext:'._('developername').'@'.$cvsrootend.' checkout '._('modulename').'