diff --git a/lib/git/base.rb b/lib/git/base.rb index 21a26621..e3f3830f 100644 --- a/lib/git/base.rb +++ b/lib/git/base.rb @@ -17,16 +17,17 @@ def self.bare(git_dir, opts = {}) # name - sinatra # # options: - # :repository + # :log # - # :bare - # or - # :working_directory - # :index_file + # :repository + # :bare + # or + # :working_directory + # :index_file # def self.clone(repository, name, opts = {}) - # run git-clone - self.new(Git::Lib.new.clone(repository, name, opts)) + # run git-clone + self.new(Git::Lib.new(nil, opts[:log]).clone(repository, name, opts).merge(log: opts[:log])) end # Returns (and initialize if needed) a Git::Config instance