OSDN Git Service

Fix logs not showing in Tree for the root path
authorRobert Speicher <rspeicher@gmail.com>
Wed, 26 Sep 2012 03:56:27 +0000 (23:56 -0400)
committerRobert Speicher <rspeicher@gmail.com>
Wed, 26 Sep 2012 20:32:25 +0000 (16:32 -0400)
app/controllers/refs_controller.rb

index 6ae816e..e92f452 100644 (file)
@@ -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]))