Skip to content

Allow to setup logger while Git.clone #496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Allow to setup logger while Git.clone
Signed-off-by: Igor Gonchar <igor.gonchar@gmail.com>
  • Loading branch information
gigorok committed Dec 9, 2020
commit 466237b84455f389c9959d76d6955bc0f17fff72
11 changes: 6 additions & 5 deletions lib/git/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@ def self.bare(git_dir, opts = {})
# name - sinatra
#
# options:
# :repository
# :log
#
# :bare
# :repository
# :bare
# or
# :working_directory
# :index_file
# :working_directory
# :index_file
#
def self.clone(repository, name, opts = {})
# run git-clone
self.new(Git::Lib.new.clone(repository, name, opts))
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
Expand Down