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:
Loic d'Anterroches
2009-01-26 17:58:58 +01:00
parent c11cd7bc62
commit f203f7d78f
4 changed files with 29 additions and 1 deletions

View File

@@ -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
*