Fix repository_config() to avoid overriding already defined repository p...

...arameters