summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-10 17:01:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-10 17:01:33 +0000
commit9b60214b3a3e25691400cd3bbf11191429bc3c1c (patch)
tree38c618b12de578d1c616ead006d58a9bc5161f4b /lib
parent4d12bea397bc1a79c16ec8000bbb8e5fae323c4b (diff)
downloadredmine-9b60214b3a3e25691400cd3bbf11191429bc3c1c.tar.gz
redmine-9b60214b3a3e25691400cd3bbf11191429bc3c1c.zip
Fixed that Repository#entries returns an Array.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9804 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/abstract_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb
index 5ceeb7c8c..d487a0f30 100644
--- a/lib/redmine/scm/adapters/abstract_adapter.rb
+++ b/lib/redmine/scm/adapters/abstract_adapter.rb
@@ -278,7 +278,7 @@ module Redmine
class Entries < Array
def sort_by_name
- sort {|x,y|
+ dup.sort! {|x,y|
if x.kind == y.kind
x.name.to_s <=> y.name.to_s
else