lib/gitolite/config/repo.rb in jbox-gitolite-1.1.5 vs lib/gitolite/config/repo.rb in jbox-gitolite-1.1.6
- old
+ new
@@ -9,10 +9,10 @@
def initialize(name)
#Store the perm hash in a lambda since we have to create a new one on every deny rule
#The perm hash is stored as a 2D hash, with individual permissions being the first
#degree and individual refexes being the second degree. Both Hashes must respect order
- @perm_hash_lambda = lambda { Hash.new {|k,v| k[v] = Hash.new{|k2, v2| k2[v2] = [] }} }
+ @perm_hash_lambda = lambda { OrderedHash.new {|k,v| k[v] = OrderedHash.new{|k2, v2| k2[v2] = [] }} }
@permissions = Array.new.push(@perm_hash_lambda.call)
@name = name
@config = {} #git config
@options = {} #gitolite config