No need to rescue Rugged::ConfigError in RepositoryMirroring

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2017-10-05 14:27:40 +02:00
parent b5f899f6ed
commit 6e48cae27d
No known key found for this signature in database
GPG key ID: 46DF07E5CD9E96AB

View file

@ -17,9 +17,6 @@ module RepositoryMirroring
raw_repository.rugged.config["remote.#{remote_name}.mirror"] = true
raw_repository.rugged.config["remote.#{remote_name}.prune"] = true
rescue Rugged::ConfigError
# Ignore multivar errors when the config already exist
# TODO: refactor/fix this
end
def add_remote_fetch_config(remote_name, refspec)