* [bug#53093] adjust git service check for actions.

This commit is contained in:
caoyanyi
2024-07-25 17:25:48 +08:00
committed by 李阳
parent 9969445ee9
commit 3591568b9b
+4 -2
View File
@@ -36,8 +36,9 @@ class git extends control
{
if(isset($_GET['repoUrl'])) $path = $this->get->repoUrl;
$this->loadModel('repo');
$path = helper::safe64Decode($path);
$repos = $this->loadModel('repo')->getListBySCM('Git,Gitlab,Gogs,Gitea', 'haspriv');
$repos = $this->repo->getListBySCM(implode(',', $this->config->repo->gitServiceTypeList), 'haspriv');
$currentRepo = null;
foreach($repos as $repo)
{
@@ -77,8 +78,9 @@ class git extends control
{
if(isset($_GET['repoUrl'])) $path = $this->get->repoUrl;
$this->loadModel('repo');
$path = helper::safe64Decode($path);
$repos = $this->loadModel('repo')->getListBySCM('Git,Gitlab,Gogs,Gitea', 'haspriv');
$repos = $this->repo->getListBySCM(implode(',', $this->config->repo->gitServiceTypeList), 'haspriv');
$currentRepo = null;
foreach($repos as $repo)
{