@classmethod
def from_remote(cls, config, remote):
    """Return an instance suitable for cloning into."""
    if config.strip_path:
        relative_path = remote.gitlab_path.relative_to(config.paths[0])
    else:
        relative_path = remote.gitlab_path
    instance = cls(config.base_path, relative_path)
    instance._gitlab_path = remote.gitlab_path
    return instance
