protect the resolveRepositoryContents method a bit