From 8ebb28364d4f0cfa203a5f52ba39841f99cb81ce Mon Sep 17 00:00:00 2001 From: aaronchen2k <462826@qq.com> Date: Mon, 20 Jan 2020 15:07:36 +0800 Subject: [PATCH] split ci module to more than modules --- module/git/model.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/git/model.php b/module/git/model.php index cc760ac0de..9dfb2273e4 100644 --- a/module/git/model.php +++ b/module/git/model.php @@ -127,7 +127,7 @@ class gitModel extends model $citaskIDs = $allCommands['build']['start']; foreach($citaskIDs as $id) { - $this->loadModel('ci')->exeCitask($id); + $this->loadModel('citask')->exe($id); } // dealwith tag commands @@ -156,7 +156,7 @@ class gitModel extends model $this->printLog('extract tasks to build: ' . json_encode($taskToBuild)); foreach ($taskToBuild as $id) { - $this->loadModel('ci')->exeCitask($id); + $this->loadModel('citask')->exe($id); } } } @@ -225,8 +225,8 @@ class gitModel extends model */ public function setRepos() { - $ci = $this->loadModel('ci'); - $repoObjs = $ci->listForSync("true"); + $cirepo = $this->loadModel('cirepo'); + $repoObjs = $cirepo->listForSync("true"); $gitRepos = []; $paths = [];