summaryrefslogtreecommitdiff
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-10-18 14:38:57 +0300
committergitlabhq <m@gitlabhq.com>2011-10-18 14:38:57 +0300
commitfc177a30f7beeeecf0e97863b8e2293b75928304 (patch)
tree4304a9e633162ed5e4d30803adfe2a8678e73ea5 /app/controllers/projects_controller.rb
parentf8e17667142dbb2e8939c3980899cc8088650637 (diff)
downloadgitlab-ce-fc177a30f7beeeecf0e97863b8e2293b75928304.tar.gz
commit time sort
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index c6dcafab311..3fc1bf5f9a6 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -64,7 +64,7 @@ class ProjectsController < ApplicationController
@heads = @project.repo.heads
@commits = @heads.map do |h|
@project.repo.log(h.name, nil, :since => @date)
- end.flatten.uniq { |c| c.id }
+ end.flatten.uniq { |c| c.id }.sort { |x, y| x.committed_date <=> x.committed_date }
@messages = project.notes.last_week.limit(40).order("created_at DESC")
end