diff --git a/rhodecode/controllers/compare.py b/rhodecode/controllers/compare.py --- a/rhodecode/controllers/compare.py +++ b/rhodecode/controllers/compare.py @@ -48,8 +48,6 @@ class CompareController(BaseRepoControll """ Parse the org...other string Possible formats are `(branch|book|tag):...(branch|book|tag):` - or using a repo ...(repo:... :type ref: str @@ -62,12 +60,11 @@ class CompareController(BaseRepoControll return _repo, (name, val) def other_parser(other): + _other_repo = request.GET.get('repo') _repo = org_repo name, val = other.split(':') - if 'repo' in other: - _repo = val - name = 'branch' - val = c.rhodecode_repo.DEFAULT_BRANCH_NAME + if _other_repo: + _repo = _other_repo #TODO: do an actual repo loookup within rhodecode return _repo, (name, val)