diff --git a/templates/repo/diff/compare.tmpl b/templates/repo/diff/compare.tmpl index 9ed4b73174d..a7b7f38e342 100644 --- a/templates/repo/diff/compare.tmpl +++ b/templates/repo/diff/compare.tmpl @@ -211,7 +211,7 @@ {{end}} {{else}}{{/* not singed-in or not for pull-request */}} - {{if not .CommitCount}} + {{if and (not .CommitCount) $.CompareInfo.MergeBase}}
{{ctx.Locale.Tr "repo.commits.nothing_to_compare"}}
{{end}} {{end}}