* Change function comment and resolve others which unexpected.

This commit is contained in:
dingguodong
2021-11-11 18:29:59 +08:00
parent 2082fe56d1
commit acb23a5053
3 changed files with 7 additions and 7 deletions

View File

@@ -115,7 +115,7 @@ class git extends control
}
foreach($logs as $log)
{
$parsedLogs[] = $this->convertLog($log);
$parsedLogs[] = $this->git->convertLog($log);
}
$this->loadModel('repo');

View File

@@ -118,7 +118,7 @@ class gitModel extends model
*/
public function updateCommit($repo, $commentGroup, $printLog = true)
{
/* Load mudule and print log. */
/* Load module and print log. */
$this->loadModel('repo');
if($printLog) $this->printLog("begin repo $repo->id");
@@ -198,7 +198,7 @@ class gitModel extends model
* Set the repos.
*
* @access public
* @return bool
* @return mixed
*/
public function setRepos()
{
@@ -230,9 +230,9 @@ class gitModel extends model
*/
public function getRepos()
{
$repos = $this->setRepos();
$this->setRepos();
$repoPairs = array();
foreach($repos as $repo) $repoPairs[] = $repo->path;
foreach($this->repos as $repo) $repoPairs[] = $repo->path;
return $repoPairs;
}
@@ -284,7 +284,7 @@ class gitModel extends model
*
* @param object $repo
* @access public
* @return void
* @return mixed
*/
public function getRepoTags($repo)
{