{"record":{"id":"5d32d7b58e6ea045","repo":"sds/overcommit","slug":"unable-to-read-from-local-repo-git-config-resul","errorCode":null,"errorMessage":"Unable to read from local repo git config: #{result.stderr}","messagePattern":"Unable to read from local repo git config: #(.+?)","errorType":"exception","errorClass":"Overcommit::Exceptions::GitConfigError","httpStatus":null,"severity":"error","filePath":"lib/overcommit/configuration.rb","lineNumber":224,"sourceCode":"      !stored_signature.empty?\n    end\n\n    # Returns whether this configuration should verify itself by checking the\n    # stored configuration for the repo.\n    #\n    # @return [true,false]\n    def verify_signatures?\n      return false if ENV['OVERCOMMIT_NO_VERIFY']\n      return true if @hash['verify_signatures'] != false\n\n      result = Overcommit::Utils.execute(\n        %W[git config --local --get #{verify_signature_config_key}]\n      )\n\n      if result.status == 1 # Key doesn't exist\n        return true\n      elsif result.status != 0\n        raise Overcommit::Exceptions::GitConfigError,\n              \"Unable to read from local repo git config: #{result.stderr}\"\n      end\n\n      # We don't cast since we want to allow anything to count as \"true\" except\n      # a literal zero\n      result.stdout.strip != '0'\n    end\n\n    # Update the currently stored signature for this hook.\n    def update_signature!\n      result = Overcommit::Utils.execute(\n        %w[git config --local] + [signature_config_key, signature]\n      )\n\n      verify_signature_value = @hash['verify_signatures'] ? 1 : 0\n      result &&= Overcommit::Utils.execute(\n        %W[git config --local #{verify_signature_config_key} #{verify_signature_value}]\n      )","sourceCodeStart":206,"sourceCodeEnd":242,"githubUrl":"https://github.com/sds/overcommit/blob/fee0cd74b26eb81f64b43b7fab17bbb541575cc4/lib/overcommit/configuration.rb#L206-L242","documentation":"Error \"Unable to read from local repo git config: #{result.stderr}\" thrown in sds/overcommit.","triggerScenarios":"Thrown at lib/overcommit/configuration.rb:224 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the git stderr shown in the message for the underlying cause (corrupt config, permission denied, missing git binary) and fix it.","Check that the directory is a valid Git repository and that `.git/config` is readable by the current user.","Verify git is installed and on the PATH used by Overcommit."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fee0cd74b26eb81f64b43b7fab17bbb541575cc4","analyzedAt":"2026-08-23T04:07:28.153Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}