OSDN Git Service

Fix encoding issues for compare view
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Tue, 7 Feb 2012 17:21:16 +0000 (19:21 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Tue, 7 Feb 2012 17:21:16 +0000 (19:21 +0200)
app/controllers/commits_controller.rb

index 73d28a5..74ea018 100644 (file)
@@ -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