This commit is contained in:
caoyanyi
2022-07-22 09:28:20 +08:00
parent 5b73ba5f36
commit 272cef7585
+1 -2
View File
@@ -320,8 +320,7 @@ class gitea
foreach($list as $node) if($node->path == $entry) $file = $node;
$commits = $this->getCommitsByPath($entry);
$commits = $this->getCommitsByPath($entry, $revision, $revision);
if(!empty($commits)) $file->revision = zget($commits[0], 'id', '');
$info->kind = (isset($file->type) and $file->type == 'tree') ? 'dir' : 'file';
}