From ca17d69bee296dbaa66cf487611dfd7cfe36e123 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Wed, 18 Aug 2021 17:21:39 +0800 Subject: [PATCH] * Finish task #41596. --- module/repo/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/repo/model.php b/module/repo/model.php index 4c44a97ca2..4ec2ce457e 100644 --- a/module/repo/model.php +++ b/module/repo/model.php @@ -1788,10 +1788,10 @@ class repoModel extends model */ public function processGitlab($repo) { - $gitlab = $this->loadModel('gitlab')->getByID($repo->client); // The $repo->client is gitlabID + $gitlab = $this->loadModel('gitlab')->getByID($repo->client); // The $repo->client is gitlabID. if(!$gitlab) return $repo; $repo->gitlab = $gitlab->id; - $repo->project = $repo->path; // The projectID in gitlab + $repo->project = $repo->path; // The projectID in gitlab. $repo->path = sprintf($this->config->repo->gitlab->apiPath, $gitlab->url, $repo->path); $repo->client = $gitlab->url; $repo->password = $gitlab->token;