Show More
@@ -608,7 +608,8 b' class RepoPullRequestsView(RepoAppView, ' | |||
|
608 | 608 | try: |
|
609 | 609 | source_repo_data = PullRequestModel().generate_repo_data( |
|
610 | 610 | source_repo, commit_id=commit_id, |
|
611 |
branch=branch_ref, bookmark=bookmark_ref, |
|
|
611 | branch=branch_ref, bookmark=bookmark_ref, | |
|
612 | translator=self.request.translate) | |
|
612 | 613 | except CommitDoesNotExistError as e: |
|
613 | 614 | log.exception(e) |
|
614 | 615 | h.flash(_('Commit does not exist'), 'error') |
@@ -627,8 +628,9 b' class RepoPullRequestsView(RepoAppView, ' | |||
|
627 | 628 | default_target_repo, translator=self.request.translate) |
|
628 | 629 | |
|
629 | 630 | selected_source_ref = source_repo_data['refs']['selected_ref'] |
|
630 | ||
|
631 |
|
|
|
631 | title_source_ref = '' | |
|
632 | if selected_source_ref: | |
|
633 | title_source_ref = selected_source_ref.split(':', 2)[1] | |
|
632 | 634 | c.default_title = PullRequestModel().generate_pullrequest_title( |
|
633 | 635 | source=source_repo.repo_name, |
|
634 | 636 | source_ref=title_source_ref, |
General Comments 0
You need to be logged in to leave comments.
Login now