Skip to content
Snippets Groups Projects
Commit ce793073 authored by Robert Speicher's avatar Robert Speicher
Browse files

Merge branch 'zj-remove-rugged-call' into 'master'

Remove rugged call in blame controller

See merge request gitlab-org/gitlab-ce!18817
parents 1802954b 4f15460d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -15,10 +15,7 @@ module Gitlab
 
def each
@blames.each do |blame|
yield(
Gitlab::Git::Commit.new(@repo, blame.commit),
blame.line
)
yield(blame.commit, blame.line)
end
end
 
Loading
Loading
@@ -60,9 +57,8 @@ module Gitlab
end
end
 
# load all commits in single call
commits.keys.each do |key|
commits[key] = @repo.lookup(key)
Gitlab::Git::Commit.batch_by_oid(@repo, commits.keys).each do |commit|
commits[commit.sha] = commit
end
 
# get it together
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment