Run rewrite-hooks after repos restore