summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-07 19:21:16 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-07 19:21:16 +0200
commit3d77183c160c57f51f1908bd57312344e34c8524 (patch)
treeca4b7d6c87b7b7f114254dba91cc615ad4ce6613
parent422e43989b0e35f3773c7e91f3d04c0baec0fb14 (diff)
downloadgitlab-ce-3d77183c160c57f51f1908bd57312344e34c8524.tar.gz
Fix encoding issues for compare view
-rw-r--r--app/controllers/commits_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/commits_controller.rb b/app/controllers/commits_controller.rb
index 73d28a555e5..74ea018a150 100644
--- a/app/controllers/commits_controller.rb
+++ b/app/controllers/commits_controller.rb
@@ -52,7 +52,7 @@ class CommitsController < ApplicationController
@commits = project.repo.commits_between(younger.id, older.id).map {|c| Commit.new(c)}
@diffs = project.repo.diff(younger.id, older.id) rescue []
- @commit = older
+ @commit = Commit.new(older)
end
end
end