Rebuild the repository