{"record":{"id":"cbcc1151bd534ec4","repo":"ruby/rubygems","slug":"11-cbcc11","errorCode":"11","errorMessage":"You need to install git to be able to use gems from git repositories. For help installing git, please refer to GitHub's tutorial at https://help.github.com/articles/set-up-git","messagePattern":"You need to install git to be able to use gems from git repositories\\. For help installing git, please refer to GitHub's tutorial at https://help\\.github\\.com/articles/set-up-git","errorType":"exception","errorClass":"Bundler::Source::Git::GitNotInstalledError","httpStatus":null,"severity":"error","filePath":"lib/bundler/source/git/git_proxy.rb","lineNumber":66,"sourceCode":"          msg = \"Specification of branch or ref with tag is ambiguous. You specified #{options.inspect}\"\n          super msg\n        end\n      end\n\n      # The GitProxy is responsible to interact with git repositories.\n      # All actions required by the Git source is encapsulated in this\n      # object.\n      class GitProxy\n        attr_accessor :path, :uri, :branch, :tag, :ref, :explicit_ref\n        attr_writer :revision\n\n        def self.version\n          @version ||= full_version[/((\\.?\\d+)+).*/, 1]\n        end\n\n        def self.full_version\n          @full_version ||= begin\n            raise GitNotInstalledError.new unless Bundler.git_present?\n\n            require \"open3\"\n            out, err, status = Open3.capture3(\"git\", \"--version\")\n\n            raise GitCommandError.new(\"--version\", SharedHelpers.pwd, err) unless status.success?\n            Bundler.ui.warn err unless err.empty?\n\n            out.sub(/git version\\s*/, \"\").strip\n          end\n        end\n\n        def self.reset\n          @version = nil\n          @full_version = nil\n        end\n\n        def initialize(path, uri, options = {}, revision = nil, git = nil)\n          @path     = path","sourceCodeStart":48,"sourceCodeEnd":84,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/source/git/git_proxy.rb#L48-L84","documentation":"Error \"You need to install git to be able to use gems from git repositories. For help installing git, please refer to GitHub's tutorial at https://help.github.com/articles/set-up-git\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/source/git/git_proxy.rb:66 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"86cbb817a38ce8477b181c17467a703ded3f2be8","analyzedAt":"2026-08-23T06:27:48.159Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}