]> source.dussan.org Git - redmine.git/commitdiff
Repository changesets are already sorted by committed_on DESC (#12713).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 3 Jan 2013 11:40:39 +0000 (11:40 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 3 Jan 2013 11:40:39 +0000 (11:40 +0000)
SQLServer raises an error because committed_on is specified twice in the order by list.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11101 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/git.rb

index e07e7c804d80f1e20a639094cab25498c9e2beff..579e86c4c72bbe64fbb183451cad1d1d576c50b7 100644 (file)
@@ -251,8 +251,7 @@ class Repository::Git < Repository
       :conditions => [
         "scmid IN (?)",
         revisions.map!{|c| c.scmid}
-      ],
-      :order => 'committed_on DESC'
+      ]
     )
   end