Show More
@@ -487,7 +487,9 b' class RepoPullRequestsView(RepoAppView, ' | |||||
487 | log.debug('Failed to get shadow repo', exc_info=True) |
|
487 | log.debug('Failed to get shadow repo', exc_info=True) | |
488 | # try first the existing source_repo, and then shadow |
|
488 | # try first the existing source_repo, and then shadow | |
489 | # repo if we can obtain one |
|
489 | # repo if we can obtain one | |
490 |
commits_source_repo = source_scm |
|
490 | commits_source_repo = source_scm | |
|
491 | if shadow_scm: | |||
|
492 | commits_source_repo = shadow_scm | |||
491 |
|
493 | |||
492 | c.commits_source_repo = commits_source_repo |
|
494 | c.commits_source_repo = commits_source_repo | |
493 | c.ancestor = None # set it to None, to hide it from PR view |
|
495 | c.ancestor = None # set it to None, to hide it from PR view | |
@@ -617,7 +619,7 b' class RepoPullRequestsView(RepoAppView, ' | |||||
617 | diffset = cached_diff['diff'] |
|
619 | diffset = cached_diff['diff'] | |
618 | else: |
|
620 | else: | |
619 | diffset = self._get_range_diffset( |
|
621 | diffset = self._get_range_diffset( | |
620 |
source_ |
|
622 | commits_source_repo, source_repo, | |
621 | commit1, commit2, diff_limit, file_limit, |
|
623 | commit1, commit2, diff_limit, file_limit, | |
622 | c.fulldiff, ign_whitespace_lcl, context_lcl |
|
624 | c.fulldiff, ign_whitespace_lcl, context_lcl | |
623 | ) |
|
625 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now