Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/git/blame.rb')
-rw-r--r--lib/gitlab/git/blame.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/gitlab/git/blame.rb b/lib/gitlab/git/blame.rb
index 3d2bde6f0a7..e134fb31879 100644
--- a/lib/gitlab/git/blame.rb
+++ b/lib/gitlab/git/blame.rb
@@ -4,7 +4,6 @@ module Gitlab
module Git
class Blame
include Gitlab::EncodingHelper
- include Gitlab::Git::WrapsGitalyErrors
attr_reader :lines, :blames, :range
@@ -35,11 +34,9 @@ module Gitlab
end
def fetch_raw_blame
- wrapped_gitaly_errors do
- @repo.gitaly_commit_client.raw_blame(@sha, @path, range: range_spec)
- end
- # Return empty result when blame range is out-of-range
+ @repo.gitaly_commit_client.raw_blame(@sha, @path, range: range_spec)
rescue ArgumentError
+ # Return an empty result when the blame range is out-of-range or path is not found
""
end