method

new

ruby latest stable - Class: Bundler::Source::Git::GitCommandError

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

new(command, path = nil, extra_info = nil)
public

No documentation available.

# File lib/bundler/source/git/git_proxy.rb, line 28
        def initialize(command, path = nil, extra_info = nil)
          msg = String.new
          msg << "Git error: command `git #{command}` in directory #{SharedHelpers.pwd} has failed."
          msg << "\n#{extra_info}" if extra_info
          msg << "\nIf this error persists you could try removing the cache directory '#{path}'" if path && path.exist?
          super msg
        end