* Remove extra space from repoModel::processGitlab function.

This commit is contained in:
Guan Xiying
2021-07-29 15:23:26 +08:00
parent 017731880d
commit 25433731e2
+5 -5
View File
@@ -1763,11 +1763,11 @@ class repoModel extends model
{
$gitlab = $this->loadModel('gitlab')->getByID($repo->client); // $repo->client is gitlabID
if(!$gitlab) return $repo;
$repo->gitlab = $gitlab->id;
$repo->project = $repo->path; // projectID in gitlab
$repo->path = sprintf($this->config->repo->gitlab->apiPath, $gitlab->url, $repo->path);
$repo->client = $gitlab->url;
$repo->password = $gitlab->token;
$repo->gitlab = $gitlab->id;
$repo->project = $repo->path; // projectID in gitlab
$repo->path = sprintf($this->config->repo->gitlab->apiPath, $gitlab->url, $repo->path);
$repo->client = $gitlab->url;
$repo->password = $gitlab->token;
return $repo;
}
}