-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Branches page still shows no. of commits ahead after merging to master branch #31472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I also noticed that when I merge a branch outside of Gitea into the default branch and push it to gitea, the branch is not marked as Included in the branch overview. This seems to be the same issue. |
I just upgraded to 1.22.1, this seems to be fixed now |
This should be caused by #29577 |
So I guess the cache should be invalidated after merging? |
Yes. I will send a PR to fix it. |
Backport #31659 by @Zettat123 Fix #31599 Fix #31472 A branch divergence is counted based on the default branch. If the default branch is updated, all divergence caches of the repo need to be deleted. Co-authored-by: Zettat123 <[email protected]>
Closed by #31659 |
Description
After upgrading from 1.21 to 1.22 I noticed the branches page shows merged branches with the same number of commits ahead as before merging. See screenshot for an example.
Step to reproduce: create a PR, merge it. Branches page will show the branch is merged, but the number of commits ahead is not 0.
Gitea Version
1.22
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
2.39.2
Operating System
Windows
How are you running Gitea?
gitea-1.22.0-gogit-windows-4.0-amd64.exe, downloaded from dl.gitea.com, running as a windows service.
Database
SQLite
The text was updated successfully, but these errors were encountered: