OSDN Git Service

Changesets stored in the database are now displayed on the repository page even if...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 29 Jun 2007 18:50:48 +0000 (18:50 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 29 Jun 2007 18:50:48 +0000 (18:50 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@579 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/repositories_controller.rb

index 21e1997..36580f4 100644 (file)
@@ -29,10 +29,10 @@ class RepositoriesController < ApplicationController
     # check if new revisions have been committed in the repository
     @repository.fetch_changesets if Setting.autofetch_changesets?
     # get entries for the browse frame
-    @entries = @repository.entries('')
-    show_error and return unless @entries
+    @entries = @repository.entries('')    
     # latest changesets
     @changesets = @repository.changesets.find(:all, :limit => 10, :order => "committed_on DESC")
+    show_error and return unless @entries || @changesets.any?
   end
   
   def browse