We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0d9408 commit 574cfefCopy full SHA for 574cfef
routers/web/repo/view_home.go
@@ -224,6 +224,9 @@ func prepareRecentlyPushedNewBranches(ctx *context.Context) {
224
}
225
226
func updateContextRepoEmptyAndStatus(ctx *context.Context, empty bool, status repo_model.RepositoryStatus) {
227
+ if ctx.Repo.Repository.IsEmpty == empty && ctx.Repo.Repository.Status == status {
228
+ return
229
+ }
230
ctx.Repo.Repository.IsEmpty = empty
231
if ctx.Repo.Repository.Status == repo_model.RepositoryReady || ctx.Repo.Repository.Status == repo_model.RepositoryBroken {
232
ctx.Repo.Repository.Status = status // only handle ready and broken status, leave other status as-is
0 commit comments