really_better_git_log_from_db.patch

Marc Mengel, 2010-10-06 22:33

Download (2.33 KB)

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