diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-05-30 14:24:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-30 14:24:14 +0800 |
commit | cc64d4d2b23fd98f3f8655eff58d810ffaf4bcae (patch) | |
tree | 0a506508fcfe95a7f185eba65fa531084806b724 /routers | |
parent | f0d55e48197a190d8b05ba083193deeb4994b754 (diff) | |
download | gitea-cc64d4d2b23fd98f3f8655eff58d810ffaf4bcae.tar.gz gitea-cc64d4d2b23fd98f3f8655eff58d810ffaf4bcae.zip |
Ignore FindRecentlyPushedNewBranches err (#31164) (#31171)
Backport #31164
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/repo/view.go | 3 |
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) } } } |