Skip to content

Commit 23cf586

Browse files
committed
Call Git::Index#new from initialize_components with the keyword parameter
1 parent 88865a1 commit 23cf586

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)