Fix feature flags for Gitaly's RemoteService RPCs

This commit is contained in:
Alejandro Rodríguez 2017-12-27 20:14:36 +00:00
parent f1d5e509b5
commit 04b987563a

View file

@ -919,7 +919,7 @@ module Gitlab
# If `mirror_refmap` is present the remote is set as mirror with that mapping
def add_remote(remote_name, url, mirror_refmap: nil)
gitaly_migrate(:operation_user_add_tag) do |is_enabled|
gitaly_migrate(:remote_add_remote) do |is_enabled|
if is_enabled
gitaly_remote_client.add_remote(remote_name, url, mirror_refmap)
else
@ -929,7 +929,7 @@ module Gitlab
end
def remove_remote(remote_name)
gitaly_migrate(:operation_user_add_tag) do |is_enabled|
gitaly_migrate(:remote_remove_remote) do |is_enabled|
if is_enabled
gitaly_remote_client.remove_remote(remote_name)
else