def METHOD_NAME(self, splits: List[str]) -> List[str]:
    if self.is_fork:
        # we got pagure fork but SSH url
        self.username = splits[0]
        return splits[1:-1]
    # path contains username/reponame
    # or some/namespace/reponame
    # or fork/username/some/namespace/reponame
    self.is_fork = (
        splits[0] in ("fork", "forks") and len(splits) >= 3
    )  # pagure fork
    if self.is_fork:
        # fork/username/namespace/repo format
        self.username = splits[1]
        return splits[2:-1]
    if self.username:
        return [self.username] + splits[:-1]
    self.username = splits[0]
    return splits[:-1]