from typing import List


def _get_create_repo(request) -> List[str]:
    """
    Retrieves the list of all GIT repositories to be created.

    Args:
        request: The pytest requests object from which to retrieve the marks.

    Returns: The list of GIT repositories to be created.
    """
    names = request.config.getoption("--create-repo", [])
    # names.extend(request.node.get_closest_marker("create_repo", []))

    # * Split ',' separated lists
    # * Remove duplicates - see conftest.py::pytest_collection_modifyitems()
    names = [name for i in names for name in i.split(",")]
    return list(set(names))