summaryrefslogtreecommitdiffstats
path: root/app/controllers/repositories_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-17 06:35:28 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-17 06:35:28 +0000
commitcad0036297bdecc13bcd5cb66f439081ca2bae9f (patch)
tree69b512a3feed4cbe400b56bee82fb6f70c6e25b8 /app/controllers/repositories_controller.rb
parentff50094d3e45723e761c6980dfe1c5204facbd92 (diff)
downloadredmine-cad0036297bdecc13bcd5cb66f439081ca2bae9f.tar.gz
redmine-cad0036297bdecc13bcd5cb66f439081ca2bae9f.zip
Use head instead of render :nothing => true.
git-svn-id: http://svn.redmine.org/redmine/trunk@15687 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/repositories_controller.rb')
-rw-r--r--app/controllers/repositories_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb
index abb1aabdb..9bee5b837 100644
--- a/app/controllers/repositories_controller.rb
+++ b/app/controllers/repositories_controller.rb
@@ -116,7 +116,7 @@ class RepositoriesController < ApplicationController
@entries = @repository.entries(@path, @rev)
@changeset = @repository.find_changeset_by_name(@rev)
if request.xhr?
- @entries ? render(:partial => 'dir_list_content') : render(:nothing => true)
+ @entries ? render(:partial => 'dir_list_content') : head(200)
else
(show_error_not_found; return) unless @entries
@changesets = @repository.latest_changesets(@path, @rev)