def longest_prefix(names):
    """Find the longest common prefix of the repository names."""
    return next(
        names[0][:n]
        for n in range(min(len(s) for s in names), 0, -1)
        if len({s[:n] for s in names}) == 1
    )