diff --git a/routers/repo/compare.go b/routers/repo/compare.go index 0ee0b0f73b..fb78ebdeac 100644 --- a/routers/repo/compare.go +++ b/routers/repo/compare.go @@ -605,7 +605,8 @@ func ExcerptBlob(ctx *context.Context) { return } section := &gitdiff.DiffSection{ - Name: filePath, + FileName: filePath, + Name: filePath, } if direction == "up" && (idxLeft-lastLeft) > chunkSize { idxLeft -= chunkSize