Show More
@@ -149,8 +149,8 b' class PullrequestsController(BaseRepoCon' | |||||
149 | self._get_repo_refs(fork.scm_instance), |
|
149 | self._get_repo_refs(fork.scm_instance), | |
150 | class_='refs') |
|
150 | class_='refs') | |
151 | } |
|
151 | } | |
152 | #add parents of this fork also |
|
152 | #add parents of this fork also, but only if it's not empty | |
153 | if org_repo.parent: |
|
153 | if org_repo.parent and org_repo.parent.scm_instance.revisions: | |
154 | c.default_pull_request = org_repo.parent.repo_name |
|
154 | c.default_pull_request = org_repo.parent.repo_name | |
155 | c.default_pull_request_rev = self._get_default_rev(org_repo.parent) |
|
155 | c.default_pull_request_rev = self._get_default_rev(org_repo.parent) | |
156 | c.default_revs = self._get_repo_refs(org_repo.parent.scm_instance) |
|
156 | c.default_revs = self._get_repo_refs(org_repo.parent.scm_instance) |
General Comments 0
You need to be logged in to leave comments.
Login now