]> source.dussan.org Git - redmine.git/commitdiff
scm: git: insert revisions to database with reverse commit order (#7821, #5357).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 10 Mar 2011 04:30:47 +0000 (04:30 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 10 Mar 2011 04:30:47 +0000 (04:30 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5073 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/git.rb

index fb5c26a7e2e9fd729113c446f4ec9a9a2092c8c9..ebb0dd7e6dc420a7cce694d13f858d1733695d11 100644 (file)
@@ -77,7 +77,7 @@ class Repository::Git < Repository
     c = changesets.find(:first, :order => 'committed_on DESC')
     since = (c ? c.committed_on - 7.days : nil)
 
-    revisions = scm.revisions('', nil, nil, :all => true, :since => since)
+    revisions = scm.revisions('', nil, nil, {:all => true, :since => since, :reverse => true})
     return if revisions.nil? || revisions.empty?
 
     recent_changesets = changesets.find(:all, :conditions => ['committed_on >= ?', since])