{"record":{"id":"4107cca893715e86","repo":"phacility/phabricator","slug":"unable-to-retrieve-details-for-commit-s","errorCode":null,"errorMessage":"Unable to retrieve details for commit \"%s\"!","messagePattern":"Unable to retrieve details for commit \"(.+?)\"!","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/repository/storage/PhabricatorRepositoryCommit.php","lineNumber":554,"sourceCode":"\n  public function newCommitRef(PhabricatorUser $viewer) {\n    $repository = $this->getRepository();\n\n    $future = $repository->newConduitFuture(\n      $viewer,\n      'internal.commit.search',\n      array(\n        'constraints' => array(\n          'repositoryPHIDs' => array($repository->getPHID()),\n          'phids' => array($this->getPHID()),\n        ),\n      ));\n    $result = $future->resolve();\n\n    $commit_display = $this->getMonogram();\n\n    if (empty($result['data'])) {\n      throw new Exception(\n        pht(\n          'Unable to retrieve details for commit \"%s\"!',\n          $commit_display));\n    }\n\n    if (count($result['data']) !== 1) {\n      throw new Exception(\n        pht(\n          'Got too many results (%s) for commit \"%s\", expected %s.',\n          phutil_count($result['data']),\n          $commit_display,\n          1));\n    }\n\n    $record = head($result['data']);\n    $ref_record = idxv($record, array('fields', 'ref'));\n\n    if (!$ref_record) {","sourceCodeStart":536,"sourceCodeEnd":572,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/repository/storage/PhabricatorRepositoryCommit.php#L536-L572","documentation":"Error \"Unable to retrieve details for commit \"%s\"!\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/repository/storage/PhabricatorRepositoryCommit.php:554 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":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}