From 272cef75853ab392c28c7b3e50c8c42f6788ee4b Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Fri, 22 Jul 2022 09:28:20 +0800 Subject: [PATCH] * Fix bug #25583. --- lib/scm/gitea.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/scm/gitea.class.php b/lib/scm/gitea.class.php index b01638fa87..9a24578d35 100644 --- a/lib/scm/gitea.class.php +++ b/lib/scm/gitea.class.php @@ -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'; }