{"record":{"id":"6995713495485365","repo":"phacility/phabricator","slug":"repository-s-is-not-a-git-repository-git-lfs-i","errorCode":null,"errorMessage":"Repository \"%s\" is not a Git repository. Git LFS is only supported for Git repositories.","messagePattern":"Repository \"(.+?)\" is not a Git repository\\. Git LFS is only supported for Git repositories\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/gitlfs/DiffusionGitLFSAuthenticateWorkflow.php","lineNumber":65,"sourceCode":"\n    // NOTE: We aren't checking write access here, even for \"upload\". The\n    // HTTP endpoint should be able to do that for us.\n\n    switch ($operation) {\n      case 'upload':\n      case 'download':\n        break;\n      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.","sourceCodeStart":47,"sourceCodeEnd":83,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/gitlfs/DiffusionGitLFSAuthenticateWorkflow.php#L47-L83","documentation":"Error \"Repository \"%s\" is not a Git repository. Git LFS is only supported for Git repositories.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/diffusion/gitlfs/DiffusionGitLFSAuthenticateWorkflow.php:65 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"}