summaryrefslogtreecommitdiffstats
path: root/app/models/repository
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-03 11:40:39 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-03 11:40:39 +0000
commit049eaeb776b51710a1a2efe061a0850626445938 (patch)
treec5d007a7ec525f35a407b16fc47dc8575d8c9978 /app/models/repository
parent8b08c1a534ab3271579d4ef9c27cfd8ec4d0fd7c (diff)
downloadredmine-049eaeb776b51710a1a2efe061a0850626445938.tar.gz
redmine-049eaeb776b51710a1a2efe061a0850626445938.zip
Repository changesets are already sorted by committed_on DESC (#12713).
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
Diffstat (limited to 'app/models/repository')
-rw-r--r--app/models/repository/git.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb
index e07e7c804..579e86c4c 100644
--- a/app/models/repository/git.rb
+++ b/app/models/repository/git.rb
@@ -251,8 +251,7 @@ class Repository::Git < Repository
:conditions => [
"scmid IN (?)",
revisions.map!{|c| c.scmid}
- ],
- :order => 'committed_on DESC'
+ ]
)
end