BeforeSourcePath should point to base commit (#18880)
This commit is contained in:
parent
8ebf0e68ec
commit
6f21a94d18
1 changed files with 2 additions and 2 deletions
|
@ -77,8 +77,8 @@ func setPathsCompareContext(ctx *context.Context, base, head *git.Commit, headOw
|
|||
ctx.Data["SourcePath"] = SourceCommitURL(headOwner, headName, head)
|
||||
ctx.Data["RawPath"] = RawCommitURL(headOwner, headName, head)
|
||||
if base != nil {
|
||||
ctx.Data["BeforeSourcePath"] = SourceCommitURL(headOwner, headName, head)
|
||||
ctx.Data["BeforeRawPath"] = RawCommitURL(headOwner, headName, head)
|
||||
ctx.Data["BeforeSourcePath"] = SourceCommitURL(headOwner, headName, base)
|
||||
ctx.Data["BeforeRawPath"] = RawCommitURL(headOwner, headName, base)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue