Reuse blob object fetched by Gitlab::Git::Blame.
This commit is contained in:
parent
f96dc6295a
commit
7f4cffd88b
|
@ -7,7 +7,7 @@ class Projects::BlameController < Projects::ApplicationController
|
|||
before_filter :authorize_download_code!
|
||||
|
||||
def show
|
||||
@blob = @repository.blob_at(@commit.id, @path)
|
||||
@blame = Gitlab::Git::Blame.new(project.repository, @commit.id, @path)
|
||||
@blame = Gitlab::Git::Blame.new(@repository, @commit.id, @path)
|
||||
@blob = @blame.blob
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue