diff options
-rw-r--r-- | app/controllers/commits_controller.rb | 2 |
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 |