* Fix bug for gitfox repo link object.

This commit is contained in:
caoyanyi
2024-03-14 11:01:29 +08:00
parent e012f02b72
commit 5f3f53cc09
3 changed files with 7 additions and 10 deletions
+3 -2
View File
@@ -183,14 +183,15 @@ class gitModel extends model
*/
public function updateCommit(object $repo, array $commentGroup, bool $printLog = true): bool
{
if($repo->SCM == 'Gitlab') return false;
$this->loadModel('repo');
if(in_array($repo->SCM, $this->config->repo->notSyncSCM)) return false;
/* Load module and print log. */
if($printLog) $this->printLog("begin repo $repo->id");
if(!$this->setRepo($repo)) return false;
/* Get branches and commits. */
$branches = $this->loadModel('repo')->getBranches($repo);
$branches = $this->repo->getBranches($repo);
$commits = $repo->commits;
$accountPairs = array();