Rewrite repo settings