diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-02 08:40:41 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-02 08:40:41 +0000 |
commit | 4eb7ac11076ffebdb35c2b4a231a9768e50a27a1 (patch) | |
tree | 6a36df56398bdcaf86c00517752745acea73915b /lib/redmine | |
parent | 53f9979696f0455408b300677c002b9f2d6ddab5 (diff) | |
download | redmine-4eb7ac11076ffebdb35c2b4a231a9768e50a27a1.tar.gz redmine-4eb7ac11076ffebdb35c2b4a231a9768e50a27a1.zip |
Fixed DarcsAdapter for ruby 1.9.3.
Unlike 1.8 and 1.9.2, Entries#compact returns an Array with 1.9.3, instead of an Entries object, resulting in a "undefined method `sort_by_name'" error.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9051 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/scm/adapters/darcs_adapter.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/darcs_adapter.rb b/lib/redmine/scm/adapters/darcs_adapter.rb index bc0dae508..38889bf0e 100644 --- a/lib/redmine/scm/adapters/darcs_adapter.rb +++ b/lib/redmine/scm/adapters/darcs_adapter.rb @@ -100,7 +100,8 @@ module Redmine end end return nil if $? && $?.exitstatus != 0 - entries.compact.sort_by_name + entries.compact! + entries.sort_by_name end def revisions(path=nil, identifier_from=nil, identifier_to=nil, options={}) |