We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9def84 commit 3fbcdd9Copy full SHA for 3fbcdd9
models/repo_mirror.go
@@ -9,6 +9,7 @@ import (
9
"time"
10
11
"code.gitea.io/git"
12
+ "code.gitea.io/gitea/modules/cache"
13
"code.gitea.io/gitea/modules/log"
14
"code.gitea.io/gitea/modules/process"
15
"code.gitea.io/gitea/modules/setting"
@@ -180,6 +181,16 @@ func (m *Mirror) runSync() bool {
180
181
}
182
183
184
+ branches, err := m.Repo.GetBranches()
185
+ if err != nil {
186
+ log.Error(4, "GetBranches: %v", err)
187
+ return false
188
+ }
189
+
190
+ for i := range branches {
191
+ cache.Remove(m.Repo.GetCommitsCountCacheKey(branches[i].Name, true))
192
193
194
m.UpdatedUnix = util.TimeStampNow()
195
return true
196
0 commit comments