summaryrefslogtreecommitdiffstats
path: root/app/controllers/repositories_controller.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-05-30 12:49:07 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-05-30 12:49:07 +0000
commitf76a85dc5a92a5290659e3d6a36ecd630c740ba3 (patch)
tree7537d188605b5d599944da79858a4946bdf9544f /app/controllers/repositories_controller.rb
parent7aa642ad7acbf40083b4e870acf8aa71d27eb0e9 (diff)
downloadredmine-f76a85dc5a92a5290659e3d6a36ecd630c740ba3.tar.gz
redmine-f76a85dc5a92a5290659e3d6a36ecd630c740ba3.zip
scm: fix error when *.yml and *.txt show (#31141, #30850)
Contributed by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@18211 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/repositories_controller.rb')
-rw-r--r--app/controllers/repositories_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb
index 9f4745464..1ebfb11be 100644
--- a/app/controllers/repositories_controller.rb
+++ b/app/controllers/repositories_controller.rb
@@ -263,6 +263,7 @@ class RepositoriesController < ApplicationController
@changeset = @repository.find_changeset_by_name(@rev)
@changeset_to = @rev_to ? @repository.find_changeset_by_name(@rev_to) : nil
@diff_format_revisions = @repository.diff_format_revisions(@changeset, @changeset_to)
+ render :diff, :formats => :html
end
end