{"record":{"id":"0b5bbc9153ce01fe","repo":"phacility/phabricator","slug":"git-lfs-is-not-enabled-for-this-repository","errorCode":null,"errorMessage":"Git LFS is not enabled for this repository.","messagePattern":"Git LFS is not enabled for this repository\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/gitlfs/DiffusionGitLFSAuthenticateWorkflow.php","lineNumber":73,"sourceCode":"      default:\n        throw new Exception(\n          pht(\n            'Git LFS operation \"%s\" is not supported by this server.',\n            $operation));\n    }\n\n    $repository = $this->getRepository();\n\n    if (!$repository->isGit()) {\n      throw new Exception(\n        pht(\n          'Repository \"%s\" is not a Git repository. Git LFS is only '.\n          'supported for Git repositories.',\n          $repository->getDisplayName()));\n    }\n\n    if (!$repository->canUseGitLFS()) {\n      throw new Exception(\n        pht('Git LFS is not enabled for this repository.'));\n    }\n\n    // NOTE: This is usually the same as the default URI (which does not\n    // need to be specified in the response), but the protocol or domain may\n    // differ in some situations.\n\n    $lfs_uri = $repository->getGitLFSURI('info/lfs');\n\n    // Generate a temporary token to allow the user to access LFS over HTTP.\n    // This works even if normal HTTP repository operations are not available\n    // on this host, and does not require the user to have a VCS password.\n\n    $user = $this->getSSHUser();\n\n    $authorization = DiffusionGitLFSTemporaryTokenType::newHTTPAuthorization(\n      $repository,\n      $user,","sourceCodeStart":55,"sourceCodeEnd":91,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/gitlfs/DiffusionGitLFSAuthenticateWorkflow.php#L55-L91","documentation":"Error \"Git LFS is not enabled for this repository.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/diffusion/gitlfs/DiffusionGitLFSAuthenticateWorkflow.php:73 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-21T13:17:26.733Z"}