* Fix bug for gitfox repo link object.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user