summaryrefslogtreecommitdiffstats
path: root/app/controllers/repositories_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-29 18:50:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-29 18:50:48 +0000
commit7eba6786d3208254169d799e6eadebaa699a4f27 (patch)
treed354e9f8d33acff2ea4ed8f3141515695025fc2a /app/controllers/repositories_controller.rb
parent65be9d3c86f5ed5ff77428a3b7842cebe79848d0 (diff)
downloadredmine-7eba6786d3208254169d799e6eadebaa699a4f27.tar.gz
redmine-7eba6786d3208254169d799e6eadebaa699a4f27.zip
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
Diffstat (limited to 'app/controllers/repositories_controller.rb')
-rw-r--r--app/controllers/repositories_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb
index 21e1997ab..36580f43a 100644
--- a/app/controllers/repositories_controller.rb
+++ b/app/controllers/repositories_controller.rb
@@ -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