Commit 89095530 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg

Tag names returned through Gitaly

Migration: https://gitlab.com/gitlab-org/gitaly/issues/220
parent 4fc46007
......@@ -268,13 +268,7 @@ module Gitlab
# Returns an Array of tag names
def tag_names
gitaly_migrate(:tag_names, status: Gitlab::GitalyClient::MigrationStatus::OPT_OUT) do |is_enabled|
if is_enabled
gitaly_ref_client.tag_names
else
rugged.tags.map { |t| t.name }
end
end
gitaly_ref_client.tag_names
end
# Returns an Array of Tags
......
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