diff --git a/app/controllers/commits_controller.rb b/app/controllers/commits_controller.rb index 73d28a5..74ea018 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 -- libgit2 0.21.2