aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-05-30 14:24:14 +0800
committerGitHub <noreply@github.com>2024-05-30 14:24:14 +0800
commitcc64d4d2b23fd98f3f8655eff58d810ffaf4bcae (patch)
tree0a506508fcfe95a7f185eba65fa531084806b724 /routers
parentf0d55e48197a190d8b05ba083193deeb4994b754 (diff)
downloadgitea-cc64d4d2b23fd98f3f8655eff58d810ffaf4bcae.tar.gz
gitea-cc64d4d2b23fd98f3f8655eff58d810ffaf4bcae.zip
Ignore FindRecentlyPushedNewBranches err (#31164) (#31171)
Backport #31164
Diffstat (limited to 'routers')
-rw-r--r--routers/web/repo/view.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go
index e1498c0d58..386ef7be5c 100644
--- a/routers/web/repo/view.go
+++ b/routers/web/repo/view.go
@@ -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)
}
}
}