class Bundler::Source::Git::GitProxy
def git(command, check_errors=true)
def git(command, check_errors=true) raise GitNotAllowedError.new(command) unless allow? raise GitNotInstalledError.new unless Bundler.git_present? Bundler::Retry.new("git #{command}").attempts do out = SharedHelpers.with_clean_git_env { %x{git #{command}} } raise GitCommandError.new(command, path) if check_errors && !$?.success? out end end