diff --git a/rhodecode/controllers/compare.py b/rhodecode/controllers/compare.py --- a/rhodecode/controllers/compare.py +++ b/rhodecode/controllers/compare.py @@ -115,9 +115,6 @@ class CompareController(BaseRepoControll org_repo = Repository.get_by_repo_name(org_repo) other_repo = Repository.get_by_repo_name(other_repo) - self.__get_cs_or_redirect(rev=org_ref, repo=org_repo, partial=partial) - self.__get_cs_or_redirect(rev=other_ref, repo=other_repo, partial=partial) - if org_repo is None: log.error('Could not find org repo %s' % org_repo) raise HTTPNotFound @@ -133,6 +130,9 @@ class CompareController(BaseRepoControll log.error('compare of two different kind of remote repos not available') raise HTTPNotFound + self.__get_cs_or_redirect(rev=org_ref, repo=org_repo, partial=partial) + self.__get_cs_or_redirect(rev=other_ref, repo=other_repo, partial=partial) + c.org_repo = org_repo c.other_repo = other_repo c.org_ref = org_ref[1]