Project

General

Profile

Defect #1435 » better_git_log_from_db.patch

Marc Mengel, 2010-10-06 22:31

View differences:

lib/redmine/scm/adapters/git_adapter.rb (working copy)
125 125
                                       :path => (path.empty? ? name : "#{path}/#{name}"),
126 126
                                       :kind => ((type == "tree") ? 'dir' : 'file'),
127 127
                                       :size => ((type == "tree") ? nil : size),
128
                                       :lastrev => get_rev(identifier,(path.empty? ? name : "#{path}/#{name}")) 
128
                                       :lastrev => Revision.new
129 129
                                                                  
130 130
                                     }) unless entries.detect{|entry| entry.name == name}
131 131
              end
(3-3/4)