Skip to content

Commit 2aae0d4

Browse files
committed
fix: call Git::Index#new correctly from initialize_components
Use the keyword parameter, not the positional one.
1 parent a62b6dd commit 2aae0d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ def setup_logger(log_option)
851851
def initialize_components(options)
852852
@working_directory = Git::WorkingDirectory.new(options[:working_directory]) if options[:working_directory]
853853
@repository = Git::Repository.new(options[:repository]) if options[:repository]
854-
@index = Git::Index.new(options[:index], false) if options[:index]
854+
@index = Git::Index.new(options[:index], must_exist: false) if options[:index]
855855
end
856856

857857
# Normalize options before they are sent to Git::Base.new

0 commit comments

Comments
 (0)