Changesets stored in the database are now displayed on the repository page even if the repository can not be reached (eg. svnserve down).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@579 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
65be9d3c86
commit
7eba6786d3
|
@ -30,9 +30,9 @@ class RepositoriesController < ApplicationController
|
|||
@repository.fetch_changesets if Setting.autofetch_changesets?
|
||||
# get entries for the browse frame
|
||||
@entries = @repository.entries('')
|
||||
show_error and return unless @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
|
||||
|
|
Loading…
Reference in New Issue