From 6d22828f9f816a2dba978232b17e075f02a0f877 Mon Sep 17 00:00:00 2001 From: aaronchen2k <462826@qq.com> Date: Fri, 31 Jan 2020 20:57:22 +0800 Subject: [PATCH] disable git pull in git->run interface --- module/git/model.php | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/module/git/model.php b/module/git/model.php index 9dfb2273e4..b8d0b2b0a8 100644 --- a/module/git/model.php +++ b/module/git/model.php @@ -92,7 +92,7 @@ class gitModel extends model $this->printLog("begin repo $repo->id"); if(!$this->setRepo($repo)) return false; - $this->pull(); +// $this->pull(); $savedRevision = $this->getSavedRevision(); $this->printLog("start from revision $savedRevision"); @@ -162,26 +162,26 @@ class gitModel extends model } } - /** - * Pull codes from remote repo. - * - * @param $repo - */ - public function pull($repo = '') - { - if (!empty($repo)) { - $repoRoot = $repo->path; - $this->setClient($repo); - } else { - $repoRoot = $this->repoRoot; - } - - chdir($repoRoot); -// exec('sudo -u aaron whoami', $output, $return); - - $cmd = "{$this->client} pull 2>&1"; - exec($cmd, $output, $return); - } +// /** +// * Pull codes from remote repo. +// * +// * @param $repo +// */ +// public function pull($repo = '') +// { +// if (!empty($repo)) { +// $repoRoot = $repo->path; +// $this->setClient($repo); +// } else { +// $repoRoot = $this->repoRoot; +// } +// +// chdir($repoRoot); +//// exec('sudo -u aaron whoami', $output, $return); +// +// $cmd = "{$this->client} pull 2>&1"; +// exec($cmd, $output, $return); +// } /** * Set the log root.