Fix loop for repos in mock_config