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
This commit is contained in:
parent
53f9979696
commit
4eb7ac1107
|
@ -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={})
|
||||
|
|
Loading…
Reference in New Issue