diff --git a/app/models/repository.rb b/app/models/repository.rb index 1fbcf5f56..4ddc73432 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -184,7 +184,11 @@ class Repository < ActiveRecord::Base def self.fetch_changesets Project.active.has_module(:repository).find(:all, :include => :repository).each do |project| if project.repository - project.repository.fetch_changesets + begin + project.repository.fetch_changesets + rescue Redmine::Scm::Adapters::CommandFailed => e + logger.error "Repository: error during fetching changesets: #{e.message}" + end end end end