From c4f7e319d019a11409915a4823dfc7f1efbe8178 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 15 Jul 2025 21:59:27 -0700 Subject: [PATCH] Fix bug --- routers/web/repo/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go index 5e7a67ac0c5..4050f75fc9b 100644 --- a/routers/web/repo/pull.go +++ b/routers/web/repo/pull.go @@ -859,7 +859,7 @@ func viewPullFiles(ctx *context.Context, beforeCommitID, afterCommitID string) { ctx.Data["CanBlockUser"] = func(blocker, blockee *user_model.User) bool { return user_service.CanBlockUser(ctx, ctx.Doer, blocker, blockee) } - if !isShowAllCommits && pull.Flow == issues_model.PullRequestFlowGithub { + if isShowAllCommits && pull.Flow == issues_model.PullRequestFlowGithub { if err := pull.LoadHeadRepo(ctx); err != nil { ctx.ServerError("LoadHeadRepo", err) return