From 3d77183c160c57f51f1908bd57312344e34c8524 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 7 Feb 2012 19:21:16 +0200 Subject: [PATCH] Fix encoding issues for compare view --- app/controllers/commits_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/commits_controller.rb b/app/controllers/commits_controller.rb index 73d28a55..74ea018a 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