diff --git a/kallithea/controllers/pullrequests.py b/kallithea/controllers/pullrequests.py --- a/kallithea/controllers/pullrequests.py +++ b/kallithea/controllers/pullrequests.py @@ -328,9 +328,8 @@ class PullrequestsController(BaseRepoCon org_ref_name, org_rev) = org_ref.split(':') if org_ref_type == 'rev': - org_ref_type = 'branch' cs = org_repo.scm_instance.get_changeset(org_rev) - org_ref = '%s:%s:%s' % (org_ref_type, cs.branch, cs.raw_id) + org_ref = 'branch:%s:%s' % (cs.branch, cs.raw_id) other_repo_name = _form['other_repo'] other_ref = _form['other_ref'] # will have symbolic name and head revision