summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2018-06-14 13:24:17 +0200
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2018-06-19 09:35:15 +0200
commitda8419a1ba1cbcc6c5c6365c99419cf17ab2d497 (patch)
tree30d69a90829d9504bfa1c72f3f7b25de4656b698 /lib
parent0f18d4896c63ad91074f1963737f5ba4458031f0 (diff)
downloadgitlab-ce-da8419a1ba1cbcc6c5c6365c99419cf17ab2d497.tar.gz
License detection happens soley through Gitaly now
Migration: https://gitlab.com/gitlab-org/gitaly/issues/1026 Conflicts: lib/gitlab/git/repository.rb
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/git/repository.rb14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index eb5d6318dcb..b028753bb2e 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -1054,18 +1054,8 @@ module Gitlab
end
def license_short_name
- gitaly_migrate(:license_short_name,
- status: Gitlab::GitalyClient::MigrationStatus::OPT_OUT) do |is_enabled|
- if is_enabled
- gitaly_repository_client.license_short_name
- else
- begin
- # The licensee gem creates a Rugged object from the path:
- # https://github.com/benbalter/licensee/blob/v8.7.0/lib/licensee/projects/git_project.rb
- Licensee.license(path).try(:key)
- rescue Rugged::Error
- end
- end
+ wrapped_gitaly_errors do
+ gitaly_repository_client.license_short_name
end
end