Commit e9bd4506 authored by Robert Speicher's avatar Robert Speicher

Fix logs not showing in Tree for the root path

parent 1799cf3b
...@@ -55,7 +55,7 @@ class RefsController < ApplicationController ...@@ -55,7 +55,7 @@ class RefsController < ApplicationController
@commit = CommitDecorator.decorate(@commit) @commit = CommitDecorator.decorate(@commit)
@tree = Tree.new(@commit.tree, project, @ref, params[:path]) @tree = Tree.new(@commit.tree, project, @ref, params[:path])
@tree = TreeDecorator.new(@tree) @tree = TreeDecorator.new(@tree)
@hex_path = Digest::SHA1.hexdigest(params[:path] || "/") @hex_path = Digest::SHA1.hexdigest(params[:path] || "")
if params[:path] if params[:path]
@history_path = project_tree_path(@project, File.join(@ref, params[:path])) @history_path = project_tree_path(@project, File.join(@ref, params[:path]))
......
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