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