* Modify mr diff.

This commit is contained in:
caoyanyi
2022-07-26 15:21:03 +08:00
parent 542156de2a
commit 91a99a6cdb
+1 -4
View File
@@ -1021,12 +1021,9 @@ class mrModel extends model
$scm = $host->type;
$this->loadModel('repo');
$repo = new stdclass;
$repo->SCM = $this->lang->repo->scmList[ucfirst($scm)];
$repo = $this->loadModel('repo')->getRepoByID($MR->repoID);
$repo->gitService = $host->id;
$repo->project = $MR->targetProject;
$repo->path = sprintf($this->config->repo->$scm->apiPath, $host->url, $MR->targetProject);
$repo->client = $host->url;
$repo->password = $host->token;
$repo->account = '';
$repo->encoding = $encoding;