opal_common/git/branch_tracker.py
def tracked_remote(self) -> Remote:
        """
        returns the tracked remote object (of type git.Remote)
        or throws if such remote does not exist on the repo
        """
        try:
            return getattr(self._repo.remotes, self._remote_name)
        except AttributeError as e:
            remotes = [remote.name for remote in self._repo.remotes]
            logger.exception("did not find main branch: {error}, instead found: {remotes_found}", error=e, remotes_found=remotes)
            raise GitFailed(e)

        returns the tracked remote object (of type git.Remote)
        or throws if such remote does not exist on the repo
        
returns the tracked remote object (of type git.Remote)
or throws if such remote does not exist on the repo
returns the tracked remote object ( of type git . Remote ) or throws if such remote does not exist on the repo
def tracked_remote(self) -> Remote:
        try:
            return getattr(self._repo.remotes, self._remote_name)
        except AttributeError as e:
            remotes = [remote.name for remote in self._repo.remotes]
            logger.exception("did not find main branch: {error}, instead found: {remotes_found}", error=e, remotes_found=remotes)
            raise GitFailed(e)
def tracked_remote ( self ) -> Remote : try : return getattr ( self . _repo . remotes , self . _remote_name ) except AttributeError as e : remotes = [ remote . name for remote in self . _repo . remotes ] logger . exception ( "did not find main branch: {error}, instead found: {remotes_found}" , error = e , remotes_found = remotes ) raise GitFailed ( e )
returns the tracked remote object (of type git.Remote)
or throws if such remote does not exist on the repo
returns the tracked remote object ( of type git . Remote ) or throws if such remote does not exist on the repo
"""
        returns the tracked remote object (of type git.Remote)
        or throws if such remote does not exist on the repo
        """
self