aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--routers/repo/pull.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index e3500716..770ec471 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -349,6 +349,12 @@ func ViewPullFiles(ctx *middleware.Context) {
ctx.Data["Diff"] = diff
ctx.Data["DiffNotAvailable"] = diff.NumFiles() == 0
+ for _, diffFile := range diff.Files {
+ for _, diffSection := range diffFile.Sections {
+ diffSection.ComputeLinesDiff()
+ }
+ }
+
commit, err := gitRepo.GetCommit(endCommitID)
if err != nil {
ctx.Handle(500, "GetCommit", err)