diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2018-07-20 14:47:50 -0400 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2018-07-20 14:47:50 -0400 |
commit | d4c3a9ab41483919203bf9c2293c4f5d7eaf5ac0 (patch) | |
tree | fbb0b9300aa92c6f95866729693b590f18842fbc /lib | |
parent | ced005f330419ec81657e852c5cb9124fdb29fbb (diff) | |
download | gitlab-ce-d4c3a9ab41483919203bf9c2293c4f5d7eaf5ac0.tar.gz |
Remove unused rugged code that is currently on Gitaly
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git/repository.rb | 8 |
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 |