summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-07-15 15:01:32 +0200
committerGitHub <noreply@github.com>2022-07-15 14:01:32 +0100
commit7d20c8323a9d5d48631d7eb793dcd2d19b25f6d4 (patch)
treea27a9fd37ecde5fc7cff2a19e5a7b6c2dd0c44ab /modules
parent4c0fce8f7b3ec185ca34e301fb67bf2d28d972d4 (diff)
downloadgitea-7d20c8323a9d5d48631d7eb793dcd2d19b25f6d4.tar.gz
gitea-7d20c8323a9d5d48631d7eb793dcd2d19b25f6d4.zip
Fix commit status icon when in subdirectory (#20285)
When viewing a subdirectory and the latest commit to that directory in the table, the commit status icon incorrectly showed the status of the HEAD commit instead of the latest for that directory.
Diffstat (limited to 'modules')
-rw-r--r--modules/git/git.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/git/git.go b/modules/git/git.go
index 3bc08ff93b..b8317396c0 100644
--- a/modules/git/git.go
+++ b/modules/git/git.go
@@ -20,6 +20,7 @@ import (
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
+
"github.com/hashicorp/go-version"
)