code: def _repo_name(self):
          
  
          if self._git_repo_name is not None:
              return self._git_repo_name
          else:
              reponame = self.repo.git_dir.split(os.sep)[-2]
              if reponame.strip() == '':
                  return 'unknown_repo'
              return reponame
docs: Returns the name of the repository, using the local directory name.
  
          :returns: str