diff --git a/rhodecode/controllers/compare.py b/rhodecode/controllers/compare.py --- a/rhodecode/controllers/compare.py +++ b/rhodecode/controllers/compare.py @@ -198,7 +198,9 @@ class CompareController(BaseRepoControll c.statuses = c.rhodecode_db_repo.statuses( [x.raw_id for x in c.commit_ranges]) - if partial: + if partial: # for PR ajax commits loader + if not c.ancestor: + return '' # cannot merge if there is no ancestor return render('compare/compare_commits.html') if c.ancestor: