* add api for integrate svn/git.

This commit is contained in:
wangyidong
2016-11-23 10:40:15 +08:00
parent 8809a36e64
commit ceb1fd45fb
4 changed files with 102 additions and 0 deletions
+19
View File
@@ -187,6 +187,25 @@ class gitModel extends model
return true;
}
/**
* Get repos.
*
* @access public
* @return array
*/
public function getRepos()
{
$repos = array();
if(!$this->config->git->repos) return $repos;
foreach($this->config->git->repos as $repo)
{
if(empty($repo['path'])) continue;
$repos[] = $repo['path'];
}
return $repos;
}
/**
* Set repo.
*