修复:fork仓库创建pr无法获取对比结果

This commit is contained in:
yystopf 2026-05-09 17:18:22 +08:00
parent b18d89928d
commit b2d0e593d3
1 changed files with 1 additions and 1 deletions

View File

@ -659,7 +659,7 @@ func ParseCompareInfo(ctx *context.APIContext) (*user_model.User, *repo_model.Re
headBranchRef = git.TagPrefix + headBranch
}
compareInfo, err := pull_service.GetCompareInfo(ctx, headRepo, headRepo, headGitRepo, baseBranchRef, headBranchRef, directComparison, false)
compareInfo, err := pull_service.GetCompareInfo(ctx, baseRepo, headRepo, headGitRepo, baseBranchRef, headBranchRef, directComparison, false)
if err != nil {
ctx.APIErrorInternal(err)
return nil, nil, nil, nil, "", ""