Recursively building a network of repositories