Commit 7eba6786 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Changesets stored in the database are now displayed on the repository page even…

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
parent 65be9d3c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment