]> source.dussan.org Git - redmine.git/commitdiff
scm: git: use revision and scmid in blame.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Apr 2011 05:52:34 +0000 (05:52 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Apr 2011 05:52:34 +0000 (05:52 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5391 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/git_adapter.rb

index 5d82d4d4b9dee9ccee9d5c7ef25849490ce6aa36..0c0b975a513989de1656cc8c7178fadc38b0dcd4 100644 (file)
@@ -304,7 +304,10 @@ module Redmine
             elsif line =~ /^\t(.*)/
               blame.add_line($1, Revision.new(
                                     :identifier => identifier,
-                                    :author => authors_by_commit[identifier]))
+                                    :revision   => identifier,
+                                    :scmid      => identifier,
+                                    :author     => authors_by_commit[identifier]
+                                    ))
               identifier = ''
               author = ''
             end