(self)
| 646 | |
| 647 | @property |
| 648 | def upstream(self): |
| 649 | git_upstream = self.git_branch.upstream |
| 650 | if not git_upstream: |
| 651 | return None |
| 652 | |
| 653 | try: |
| 654 | git_upstream.remote_name |
| 655 | return RemoteBranch(git_upstream, self.gl_repo) |
| 656 | except ValueError: # Upstream is a local branch |
| 657 | return Branch(git_upstream, self.gl_repo) |
| 658 | |
| 659 | @upstream.setter |
| 660 | def upstream(self, new_upstream): |
nothing calls this directly
no test coverage detected