docs: def apply_path(self, repo):
          """ Set path to where the repo is and return original path """
          try:
              # rewrite repo for consistency
              if repo.endswith('.git'):
                  repo = repo.split('.git')[0]
  
              # get org and repo name and path repo will be cloned to
              org, name = repo.split('/')[-2:]
              path = join(self.plugins_dir, org, name)
  
              # save current path
              cwd = getcwd()
  
              # set to new repo path
              self.ensure_dir(path)
              chdir(path)
              status = (True, cwd, path)
          except Exception as e:  # pragma: no cover
              status = (False, str(e))
          return status