Fix numbr of files, total additions, and deletions (#11614)

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
zeripathandtechknowlogick authored and GitHub committed 2020-05-26 01:58:07 -04:00
1 parent b97917a6e7
commit 5cb201dc93
8 files changed
+106 -15

No files matched your search

+1 -1
View File
@@ -611,7 +611,7 @@ func ViewPullFiles(ctx *context.Context) {
}
ctx.Data["Diff"] = diff
ctx.Data["DiffNotAvailable"] = diff.NumFiles() == 0
ctx.Data["DiffNotAvailable"] = diff.NumFiles == 0
baseCommit, err := ctx.Repo.GitRepo.GetCommit(startCommitID)
if err != nil {