diff --git a/pagure/ui/fork.py b/pagure/ui/fork.py index 6124c44..43f6b96 100644 --- a/pagure/ui/fork.py +++ b/pagure/ui/fork.py @@ -898,10 +898,7 @@ def new_request_pull(repo, branch_to, branch_from, username=None): diff_commits=diff_commits, diff=diff, form=form, - branches=[ - branch.replace('refs/heads/', '') - for branch in sorted(orig_repo.listall_references()) - ], + branches=sorted(orig_repo.listall_branches()), branch_to=branch_to, branch_from=branch_from, )