Bad commits count on tag trees #8120

Closed
opened 2025-11-02 07:54:26 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @ghost on GitHub (Nov 17, 2021).

Originally assigned to: @KN4CK3R on GitHub.

Gitea Version

1.15.6

Git Version

2.34.0

Operating System

No response

How are you running Gitea?

I'm running the official build from https://gitea.io

Database

SQLite

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

When you have many tags in a repository and you browse the tree of one of them, the commits count in the up left corner displays the commits count of the last pushed tag and not the tag you are browsing.

You can see it here : https://try.gitea.io/issuereporter224/repo

You have 5 very simple commits and 3 tags on them. If you select the last tag "vfour", it displays 4 commits so it's good. But if you select one of the 2 tags above, it will continue to display 4 commits when it should display 2 commits on the "vtwo" tag and 1 commit on the "vone" tag.

Thank a lot for all your work, i love gitea 😀

Screenshots

image

Originally created by @ghost on GitHub (Nov 17, 2021). Originally assigned to: @KN4CK3R on GitHub. ### Gitea Version 1.15.6 ### Git Version 2.34.0 ### Operating System _No response_ ### How are you running Gitea? I'm running the official build from https://gitea.io ### Database SQLite ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Description When you have many tags in a repository and you browse the tree of one of them, the commits count in the up left corner displays the commits count of the last pushed tag and not the tag you are browsing. You can see it here : https://try.gitea.io/issuereporter224/repo You have 5 very simple commits and 3 tags on them. If you select the last tag "vfour", it displays 4 commits so it's good. But if you select one of the 2 tags above, it will continue to display 4 commits when it should display 2 commits on the "vtwo" tag and 1 commit on the "vone" tag. Thank a lot for all your work, i love gitea 😀 ### Screenshots ![image](https://user-images.githubusercontent.com/91130460/142193493-6d2ee1f3-e127-4a09-ae68-e694e1a21bee.png)
GiteaMirror added the type/bug label 2025-11-02 07:54:26 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Nov 17, 2021):

I found the problem but noticed some follow-up problems which prevent a quick PR.

@KN4CK3R commented on GitHub (Nov 17, 2021): I found the problem but noticed some follow-up problems which prevent a quick PR.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8120