Fixed issue 57, bug dans la gestion SVN.

This commit is contained in:
bohwaz 2008-11-18 11:23:09 +01:00 committed by Loic d'Anterroches
parent 79312f7242
commit e01235caea
2 changed files with 6 additions and 3 deletions

View File

@ -3,4 +3,5 @@ by Loïc d'Anterroches with the support of Céondo Ltd.
Much appreciated contributors: Much appreciated contributors:
Nicolas Lassalle <http://www.beroot.org/> Nicolas Lassalle <http://www.beroot.org/>
bohwaz <http://bohwaz.net/>

View File

@ -50,7 +50,8 @@ class IDF_Scm_Svn
public static function getRemoteAccessUrl($project) public static function getRemoteAccessUrl($project)
{ {
$conf = $project->getConf(); $conf = $project->getConf();
if (false !== ($url=$conf->getVal('svn_remote_url', false))) { if (false !== ($url=$conf->getVal('svn_remote_url', false))
&& !empty($url)) {
// Remote repository // Remote repository
return $url; return $url;
} }
@ -71,7 +72,8 @@ class IDF_Scm_Svn
{ {
$conf = $project->getConf(); $conf = $project->getConf();
// Find the repository // Find the repository
if (false !== ($rep=$conf->getVal('svn_remote_url', false))) { if (false !== ($rep=$conf->getVal('svn_remote_url', false))
&& !empty($rep)) {
// Remote repository // Remote repository
return new IDF_Scm_Svn($rep, return new IDF_Scm_Svn($rep,
$conf->getVal('svn_username'), $conf->getVal('svn_username'),