* Adjust gitfox file list get logic.

This commit is contained in:
caoyanyi
2024-05-22 16:23:37 +08:00
parent fb7b06a60a
commit c31edd9ca3
+4 -1
View File
@@ -47,7 +47,10 @@ class gitfoxRepo
$param->git_ref = $revision;
if(!empty($this->branch)) $param->git_ref = $this->branch;
$list = $this->fetch($api, $param, true, array(), 'entries');
$list = $this->fetch($api, $param);
if(empty($list) || !isset($list->content->entries)) return array();
$list = $list->content->entries;
if(empty($list)) return array();
$files = $this->fetch('path-details', array('git_ref' => $param->git_ref), false, array('paths' => array_column($list, 'path')));