mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	BeforeSourcePath should point to base commit (#18799)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		@@ -78,8 +78,8 @@ func setPathsCompareContext(ctx *context.Context, base, head *git.Commit, headOw
 | 
				
			|||||||
	ctx.Data["SourcePath"] = SourceCommitURL(headOwner, headName, head)
 | 
						ctx.Data["SourcePath"] = SourceCommitURL(headOwner, headName, head)
 | 
				
			||||||
	ctx.Data["RawPath"] = RawCommitURL(headOwner, headName, head)
 | 
						ctx.Data["RawPath"] = RawCommitURL(headOwner, headName, head)
 | 
				
			||||||
	if base != nil {
 | 
						if base != nil {
 | 
				
			||||||
		ctx.Data["BeforeSourcePath"] = SourceCommitURL(headOwner, headName, head)
 | 
							ctx.Data["BeforeSourcePath"] = SourceCommitURL(headOwner, headName, base)
 | 
				
			||||||
		ctx.Data["BeforeRawPath"] = RawCommitURL(headOwner, headName, head)
 | 
							ctx.Data["BeforeRawPath"] = RawCommitURL(headOwner, headName, base)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user