Sha256: d23972aead6e3f3953d7a3f1ddfda501e69477d5835a90de5e7836d61b84ec37
Contents?: true
Size: 488 Bytes
Versions: 2
Compression:
Stored size: 488 Bytes
Contents
require 'git' # Patch ruby-git to support logger for Git.clone # See https://github.com/schacon/ruby-git/issues/208 module CloneLoggerFix module ClassMethods def clone(repository, name, opts = {}) lib = ::Git::Lib.new(nil, opts[:log]) clone_opts = lib.clone(repository, name, opts) new(clone_opts.merge(log: opts[:log])) end end def self.prepended(base) class << base prepend ClassMethods end end end ::Git::Base.prepend(CloneLoggerFix)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
github_bitbucket_deployer-1.0.1 | lib/github_bitbucket_deployer/clone_logger_fix.rb |
github_bitbucket_deployer-1.0.0 | lib/github_bitbucket_deployer/clone_logger_fix.rb |