修复:fork仓库创建pr无法获取对比结果
This commit is contained in:
parent
b18d89928d
commit
b2d0e593d3
|
|
@ -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, "", ""
|
||||
|
|
|
|||
Loading…
Reference in New Issue