Reuse blob object fetched by Gitlab::Git::Blame.

This commit is contained in:
Douwe Maan 2015-03-06 12:25:42 +01:00
parent f96dc6295a
commit 7f4cffd88b
1 changed files with 2 additions and 2 deletions

View File

@ -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