diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-03-10 04:30:47 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-03-10 04:30:47 +0000 |
commit | 6dc57e752dc436199afbcc9554d5ec8ebd369703 (patch) | |
tree | c1c0347ce8658593f6cb7d18c33c7152e3e1afd3 /app/models | |
parent | b235e3694628088b57681bffdce1a6ab438ade94 (diff) | |
download | redmine-6dc57e752dc436199afbcc9554d5ec8ebd369703.tar.gz redmine-6dc57e752dc436199afbcc9554d5ec8ebd369703.zip |
scm: git: insert revisions to database with reverse commit order (#7821, #5357).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5073 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/repository/git.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb index fb5c26a7e..ebb0dd7e6 100644 --- a/app/models/repository/git.rb +++ b/app/models/repository/git.rb @@ -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]) |