]> source.dussan.org Git - gitea.git/commit
Fix a branch divergence cache bug (#31659) (#31661)
authorGiteabot <teabot@gitea.io>
Fri, 19 Jul 2024 17:12:23 +0000 (01:12 +0800)
committerGitHub <noreply@github.com>
Fri, 19 Jul 2024 17:12:23 +0000 (13:12 -0400)
commit00aade2cab71f9a0c3a590cb5557f842fb7dba26
treefb70768ab95946595b03117f3015ac2eb4ecaafe
parentc2b1b94c5a28deab2c65cae3e84124a14f6cbb20
Fix a branch divergence cache bug (#31659) (#31661)

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 <zettat123@gmail.com>
services/repository/branch.go
services/repository/push.go