summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2018-07-20 14:47:50 -0400
committerAlejandro Rodríguez <alejorro70@gmail.com>2018-07-20 14:47:50 -0400
commitd4c3a9ab41483919203bf9c2293c4f5d7eaf5ac0 (patch)
treefbb0b9300aa92c6f95866729693b590f18842fbc /lib
parentced005f330419ec81657e852c5cb9124fdb29fbb (diff)
downloadgitlab-ce-d4c3a9ab41483919203bf9c2293c4f5d7eaf5ac0.tar.gz
Remove unused rugged code that is currently on Gitaly
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/git/repository.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index 5b955753a92..21ac43f80fd 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -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