Rebuilding the repository