class Bundler::Source::Git::GitProxy

def git_retry(*command, dir: nil)

def git_retry(*command, dir: nil)
  command_with_no_credentials = check_allowed(command)
  Bundler::Retry.new("`#{command_with_no_credentials}` at #{dir || SharedHelpers.pwd}").attempts do
    git(*command, :dir => dir)
  end
end