Skip to content

Commit ae3a11d

Browse files
committed
Fix upon @prahal's 2104b7c commit about Ruby 3.x compat
The options hash passed to repository constructor is duplicated. See lib/redmine_git_hosting/gitolite_handlers/repositories/base.rb#13 Thus, options should be updated by accessing the class' attribute directly.
1 parent 74062e0 commit ae3a11d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/redmine_git_hosting/gitolite_handlers/repositories/add_repository.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def gitolite_repo_path
3232

3333
def initialize(gitolite_config, repository, context, **options)
3434
super(gitolite_config, repository, context, **options)
35-
@force = options.delete(:force) { false }
36-
@old_perms = options.delete(:old_perms) { {} }
35+
@force = @options.delete(:force) { false }
36+
@old_perms = @options.delete(:old_perms) { {} }
3737
end
3838
end
3939
end

0 commit comments

Comments
 (0)