Fix logs not showing in Tree for the root path

This commit is contained in:
Robert Speicher 2012-09-25 23:56:27 -04:00
parent 1799cf3b49
commit e9bd45060e

View file

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