]> source.dussan.org Git - gitea.git/commitdiff
Ignore FindRecentlyPushedNewBranches err (#31164)
authorwxiaoguang <wxiaoguang@gmail.com>
Thu, 30 May 2024 02:24:22 +0000 (10:24 +0800)
committerGitHub <noreply@github.com>
Thu, 30 May 2024 02:24:22 +0000 (02:24 +0000)
Fix #31163

routers/web/repo/view.go

index e1498c0d581e04686ce800840eeac30bc6ae2d70..386ef7be5ce8798fbd61b8bea0f4feb59aa58b12 100644 (file)
@@ -1047,8 +1047,7 @@ func renderHomeCode(ctx *context.Context) {
                        baseRepoPerm.CanRead(unit_model.TypePullRequests) {
                        ctx.Data["RecentlyPushedNewBranches"], err = git_model.FindRecentlyPushedNewBranches(ctx, ctx.Doer, opts)
                        if err != nil {
-                               ctx.ServerError("FindRecentlyPushedNewBranches", err)
-                               return
+                               log.Error("FindRecentlyPushedNewBranches failed: %v", err)
                        }
                }
        }