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

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)
                        }
                }
        }