Commit dec420fe authored by Phil Hughes's avatar Phil Hughes

fixed project homepage not having correct variable

parent f38a6d6e
......@@ -26,7 +26,6 @@ class Projects::TreeController < Projects::ApplicationController
respond_to do |format|
format.html do
@lfs_blobs = Gitlab::Git::Blob.batch_lfs_pointers(@project.repository, @tree.blobs.map(&:id))
@last_commit = @repository.last_commit_for_path(@commit.id, @tree.path) || @commit
end
......
......@@ -128,6 +128,9 @@ module ExtractsPath
@hex_path = Digest::SHA1.hexdigest(@path)
@logs_path = logs_file_project_ref_path(@project, @ref, @path)
blob_ids = tree.blobs.map(&:id)
@lfs_blobs = Gitlab::Git::Blob.batch_lfs_pointers(@repo, blob_ids)
rescue RuntimeError, NoMethodError, InvalidPathError
render_404
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment