diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-10-01 18:00:28 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-10-01 18:00:28 +0400 |
commit | ae9dd6276267e0df2d9c2da3b89393e4ee212175 (patch) | |
tree | 4db4314bd54eda3bce6b3c67b719f1f5097fb68a /app/controllers/projects/tree_controller.rb | |
parent | e219cf7246c6a0495e4507deaffeba11e79f13b8 (diff) |
Update code to work with gitlab_git 3
Diffstat (limited to 'app/controllers/projects/tree_controller.rb')
-rw-r--r-- | app/controllers/projects/tree_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/projects/tree_controller.rb b/app/controllers/projects/tree_controller.rb index 5d543f35665..1150efbea9d 100644 --- a/app/controllers/projects/tree_controller.rb +++ b/app/controllers/projects/tree_controller.rb @@ -8,6 +8,8 @@ class Projects::TreeController < Projects::ApplicationController before_filter :require_non_empty_project def show + return not_found! if tree.entries.empty? + respond_to do |format| format.html # Disable cache so browser history works |