From e9bd45060e3c5198124b4cdad08a7a26f5e0408a Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Tue, 25 Sep 2012 23:56:27 -0400 Subject: [PATCH] Fix logs not showing in Tree for the root path --- app/controllers/refs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/refs_controller.rb b/app/controllers/refs_controller.rb index 6ae816ecb..e92f45272 100644 --- a/app/controllers/refs_controller.rb +++ b/app/controllers/refs_controller.rb @@ -55,7 +55,7 @@ class RefsController < ApplicationController @commit = CommitDecorator.decorate(@commit) @tree = Tree.new(@commit.tree, project, @ref, params[:path]) @tree = TreeDecorator.new(@tree) - @hex_path = Digest::SHA1.hexdigest(params[:path] || "/") + @hex_path = Digest::SHA1.hexdigest(params[:path] || "") if params[:path] @history_path = project_tree_path(@project, File.join(@ref, params[:path])) -- 2.11.0