summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-09-25 23:56:27 -0400
committerRobert Speicher <rspeicher@gmail.com>2012-09-26 16:32:25 -0400
commite9bd45060e3c5198124b4cdad08a7a26f5e0408a (patch)
treeb49d8cc3e99d85bfa10c9c35ca9edd6884e8124c /app
parent1799cf3b49dbe243e21f13d51496be7d60d1a73f (diff)
downloadgitlab-ce-e9bd45060e3c5198124b4cdad08a7a26f5e0408a.tar.gz
Fix logs not showing in Tree for the root path
Diffstat (limited to 'app')
-rw-r--r--app/controllers/refs_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/refs_controller.rb b/app/controllers/refs_controller.rb
index 6ae816ecb30..e92f45272d6 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]))