opal_common/git/branch_tracker.py
def tracked_branch(self) -> Head:
        """
        returns the tracked branch object (of type git.HEAD)
        or throws if such branch does not exist on the repo
        """
        try:
            return getattr(self._repo.heads, self._branch_name)
        except AttributeError as e:
            branches = [{'name': head.name, 'path': head.path} for head in self._repo.heads]
            logger.exception("did not find main branch: {error}, instead found: {branches_found}", error=e, branches_found=branches)
            raise GitFailed(e)

        returns the tracked branch object (of type git.HEAD)
        or throws if such branch does not exist on the repo
        
returns the tracked branch object (of type git.HEAD)
or throws if such branch does not exist on the repo
returns the tracked branch object ( of type git . HEAD ) or throws if such branch does not exist on the repo
def tracked_branch(self) -> Head:
        try:
            return getattr(self._repo.heads, self._branch_name)
        except AttributeError as e:
            branches = [{'name': head.name, 'path': head.path} for head in self._repo.heads]
            logger.exception("did not find main branch: {error}, instead found: {branches_found}", error=e, branches_found=branches)
            raise GitFailed(e)
def tracked_branch ( self ) -> Head : try : return getattr ( self . _repo . heads , self . _branch_name ) except AttributeError as e : branches = [ { 'name' : head . name , 'path' : head . path } for head in self . _repo . heads ] logger . exception ( "did not find main branch: {error}, instead found: {branches_found}" , error = e , branches_found = branches ) raise GitFailed ( e )
returns the tracked branch object (of type git.HEAD)
or throws if such branch does not exist on the repo
returns the tracked branch object ( of type git . HEAD ) or throws if such branch does not exist on the repo
"""
        returns the tracked branch object (of type git.HEAD)
        or throws if such branch does not exist on the repo
        """
self