Skip to content

Commit 582ad33

Browse files
Use correct start and end commits for GetDiffTree (#33816)
Fixes #33514 (comment) Co-authored-by: wxiaoguang <[email protected]>
1 parent ef18655 commit 582ad33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ func viewPullFiles(ctx *context.Context, specifiedStartCommit, specifiedEndCommi
820820

821821
if !fileOnly {
822822
// note: use mergeBase is set to false because we already have the merge base from the pull request info
823-
diffTree, err := gitdiff.GetDiffTree(ctx, gitRepo, false, pull.MergeBase, headCommitID)
823+
diffTree, err := gitdiff.GetDiffTree(ctx, gitRepo, false, startCommitID, endCommitID)
824824
if err != nil {
825825
ctx.ServerError("GetDiffTree", err)
826826
return

0 commit comments

Comments
 (0)