Fixed bad help message for the git access.
Git has 2 methods to access a repository, one with gitdaemon to do a checkout and one with SSH to perform the push. We need to provide those 2 methods.
This commit is contained in:
@@ -362,6 +362,22 @@ class IDF_Project extends Pluf_Model
|
||||
$this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the remote write access url to the repository.
|
||||
*
|
||||
* Some SCM have a remote access URL to write which is not the
|
||||
* same as the one to read. For example, you do a checkout with
|
||||
* git-daemon and push with SSH.
|
||||
*/
|
||||
public function getWriteRemoteAccessUrl()
|
||||
{
|
||||
$conf = $this->getConf();
|
||||
$scm = $conf->getVal('scm', 'git');
|
||||
$scms = Pluf::f('allowed_scm');
|
||||
return call_user_func(array($scms[$scm], 'getWriteRemoteAccessUrl'),
|
||||
$this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the root name of the project scm
|
||||
*
|
||||
|
Reference in New Issue
Block a user