* Adjust scm check rule for file tree get.

This commit is contained in:
caoyanyi
2023-12-18 15:48:21 +08:00
parent 6de6f56697
commit cd50412c19
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -2002,7 +2002,7 @@ class repo extends control
$repo = $this->repo->getByID($repoID);
if($path) $path = helper::safe64Decode($path);
if($repo->SCM == 'gitlab') return print(json_encode($this->repo->getGitlabFilesByPath($repo, $path, $branch)));
if($repo->SCM == 'Gitlab') return print(json_encode($this->repo->getGitlabFilesByPath($repo, $path, $branch)));
return print(json_encode($this->repoZen->getViewTree($repo, $path, $branch)));
}
}