Show More
@@ -149,8 +149,8 b' class PullrequestsController(BaseRepoCon' | |||
|
149 | 149 | self._get_repo_refs(fork.scm_instance), |
|
150 | 150 | class_='refs') |
|
151 | 151 | } |
|
152 | #add parents of this fork also | |
|
153 | if org_repo.parent: | |
|
152 | #add parents of this fork also, but only if it's not empty | |
|
153 | if org_repo.parent and org_repo.parent.scm_instance.revisions: | |
|
154 | 154 | c.default_pull_request = org_repo.parent.repo_name |
|
155 | 155 | c.default_pull_request_rev = self._get_default_rev(org_repo.parent) |
|
156 | 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