Attempt to rewrite the repository