Commit 6e48cae2 authored by Rémy Coutable's avatar Rémy Coutable

No need to rescue Rugged::ConfigError in RepositoryMirroring

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent b5f899f6
...@@ -17,9 +17,6 @@ module RepositoryMirroring ...@@ -17,9 +17,6 @@ module RepositoryMirroring
raw_repository.rugged.config["remote.#{remote_name}.mirror"] = true raw_repository.rugged.config["remote.#{remote_name}.mirror"] = true
raw_repository.rugged.config["remote.#{remote_name}.prune"] = 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 end
def add_remote_fetch_config(remote_name, refspec) def add_remote_fetch_config(remote_name, refspec)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment