Commit d4c3a9ab authored by Alejandro Rodríguez's avatar Alejandro Rodríguez

Remove unused rugged code that is currently on Gitaly

parent ced005f3
......@@ -1253,14 +1253,6 @@ module Gitlab
run_git(args, env: source_repository.fetch_env)
end
def rugged_add_remote(remote_name, url, mirror_refmap)
rugged.remotes.create(remote_name, url)
set_remote_as_mirror(remote_name, refmap: mirror_refmap) if mirror_refmap
rescue Rugged::ConfigError
remote_update(remote_name, url: url)
end
def gitaly_delete_refs(*ref_names)
gitaly_ref_client.delete_refs(refs: ref_names) if ref_names.any?
end
......
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