Commit d1f890e9 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'gitaly-add-remote-mandatory' into 'master'

Remove unused rugged code that is currently on Gitaly

See merge request gitlab-org/gitlab-ce!20754
parents 82a89039 d4c3a9ab
......@@ -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