* Adjust scm check rule for file tree get.

This commit is contained in:
caoyanyi
2023-12-11 09:23:20 +08:00
parent cfbf6c07c4
commit ffccba1f6d
+1 -1
View File
@@ -1570,7 +1570,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)));
}