From 8d2086146068eb9e1d78c15f7941155840cdc1f9 Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Fri, 21 Mar 2025 14:52:42 +0100 Subject: [PATCH] Fix not returning after server error --- routers/web/repo/pull.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go index e7deaea7b0..cd4fe4a82b 100644 --- a/routers/web/repo/pull.go +++ b/routers/web/repo/pull.go @@ -958,6 +958,7 @@ func viewPullFiles(ctx *context.Context, specifiedStartCommit, specifiedEndCommi if curCommit == nil { ctx.ServerError("Repo.GitRepo.viewPullFiles", git.ErrNotExist{ID: commitID}) + return } ctx.Data["Commit"] = curCommit