Commit e9bd45060e3c5198124b4cdad08a7a26f5e0408a
1 parent
1799cf3b
Exists in
master
and in
4 other branches
Fix logs not showing in Tree for the root path
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/refs_controller.rb
| @@ -55,7 +55,7 @@ class RefsController < ApplicationController | @@ -55,7 +55,7 @@ class RefsController < ApplicationController | ||
| 55 | @commit = CommitDecorator.decorate(@commit) | 55 | @commit = CommitDecorator.decorate(@commit) |
| 56 | @tree = Tree.new(@commit.tree, project, @ref, params[:path]) | 56 | @tree = Tree.new(@commit.tree, project, @ref, params[:path]) |
| 57 | @tree = TreeDecorator.new(@tree) | 57 | @tree = TreeDecorator.new(@tree) |
| 58 | - @hex_path = Digest::SHA1.hexdigest(params[:path] || "/") | 58 | + @hex_path = Digest::SHA1.hexdigest(params[:path] || "") |
| 59 | 59 | ||
| 60 | if params[:path] | 60 | if params[:path] |
| 61 | @history_path = project_tree_path(@project, File.join(@ref, params[:path])) | 61 | @history_path = project_tree_path(@project, File.join(@ref, params[:path])) |