From dd8f090bc84a96bce0f086a8be9840751da21747 Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Mon, 29 Jul 2013 16:51:04 +0300
Subject: [PATCH] Fix hardcoded condition and unassigned vars

---
 app/controllers/public/projects_controller.rb | 2 +-
 app/views/public/projects/_tree.html.haml     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/controllers/public/projects_controller.rb b/app/controllers/public/projects_controller.rb
index ed90d0348e..85216cd327 100644
--- a/app/controllers/public/projects_controller.rb
+++ b/app/controllers/public/projects_controller.rb
@@ -19,6 +19,6 @@ class Public::ProjectsController < ApplicationController
     @recent_tags = @repository.tags.first(10)
 
     @commit = @repository.commit(params[:ref])
-    @tree = Tree.new(@repository, @commit.id, @ref, @path)
+    @tree = Tree.new(@repository, @commit.id)
   end
 end
diff --git a/app/views/public/projects/_tree.html.haml b/app/views/public/projects/_tree.html.haml
index cc701dfaca..bd09c236a0 100644
--- a/app/views/public/projects/_tree.html.haml
+++ b/app/views/public/projects/_tree.html.haml
@@ -1,4 +1,4 @@
-- if false#tree.readme
+- if tree.readme
   = render "projects/tree/readme", readme: tree.readme
 - else
   .alert
-- 
2.30.9