Skip to content

Commit 466237b

Browse files
committed
Allow to setup logger while Git.clone
Signed-off-by: Igor Gonchar <igor.gonchar@gmail.com>
1 parent f9abb18 commit 466237b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/git/base.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@ def self.bare(git_dir, opts = {})
1717
# name - sinatra
1818
#
1919
# options:
20-
# :repository
20+
# :log
2121
#
22-
# :bare
22+
# :repository
23+
# :bare
2324
# or
24-
# :working_directory
25-
# :index_file
25+
# :working_directory
26+
# :index_file
2627
#
2728
def self.clone(repository, name, opts = {})
2829
# run git-clone
29-
self.new(Git::Lib.new.clone(repository, name, opts))
30+
self.new(Git::Lib.new(nil, opts[:log]).clone(repository, name, opts).merge(log: opts[:log]))
3031
end
3132

3233
# Returns (and initialize if needed) a Git::Config instance

0 commit comments

Comments
 (0)