You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: shared_bundler_helpers.rb
    path of file: ./repos/dependabot-core/bundler/lib/dependabot/bundler/update_checker
    
    the code of the file until where you have to start completion: # typed: false
# frozen_string_literal: true

require "excon"
require "uri"

require "dependabot/bundler/update_checker"
require "dependabot/bundler/native_helpers"
require "dependabot/bundler/helpers"
require "dependabot/registry_client"
require "dependabot/shared_helpers"
require "dependabot/errors"

module Dependabot
  module Bundler
    class UpdateChecker
      module SharedBundlerHelpers
        GIT_REGEX = /reset --hard [^\s]*` in direct
    
        def inaccessible_git_dependencies
          in_a_native_bundler_context(error_handling: false) do |tmp_dir|
            git_specs = NativeHelpers.run_bundler_subprocess(
              bundler_version: bundler_version,
              function: "git_specs",
              options: options,
              args: {
                dir: tmp_dir,
                gemfile_name: gemfile.name,
                credentials: credentials
              }
            )
            git_specs.reject do |spec|
              uri = URI.parse(spec.fetch("auth_uri"))
              next false unless uri.scheme&.match?(/https?/o)

              Dependabot::RegistryClient.get(
                url: uri.to_s
              ).status == 200
            rescue Excon::Error::Socket, Excon::Error::Timeout
              false
            end
          end
        end