class Bundler::Source::Git::GitProxy

def git(command, check_errors=true)

def git(command, check_errors=true)
  raise GitNotAllowedError.new(command) unless allow?
  out = SharedHelpers.with_clean_git_env { %x{git #{command}} }
  raise GitCommandError.new(command, path) if check_errors && !$?.success?
  out
end