From bc11af6758264c7cbebb2c3dccff0f754b3555d8 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Wed, 14 Feb 2018 13:26:50 -0800 Subject: [PATCH] Remove use of catching Rugged exceptions --- app/models/repository.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/models/repository.rb b/app/models/repository.rb index eef187b623b..7d719c5e1a1 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -598,7 +598,10 @@ class Repository # https://github.com/benbalter/licensee/blob/v8.7.0/lib/licensee/projects/git_project.rb begin Licensee.project(path, revision: head_commit.sha).license.try(:key) - rescue Rugged::Error + # Normally we would rescue Rugged::Error, but that is banned by lint-rugged + # and we need to migrate this endpoint to Gitaly: + # https://gitlab.com/gitlab-org/gitaly/issues/1026 + rescue end end cache_method :license_key -- GitLab