diff --git a/app/controllers/commits_controller.rb b/app/controllers/commits_controller.rb index 73d28a555e51568b79779b586ebfe37b825103ea..74ea018a15003b0464b633ce37219fd1ebaf7fe9 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