{"record":{"id":"35ecb0bcf8a083e6","repo":"phacility/phabricator","slug":"expected-git-lfs-authenticate-path-operation","errorCode":null,"errorMessage":"Expected `git-lfs-authenticate <path> <operation>`, but received too few arguments.","messagePattern":"Expected `git-lfs-authenticate <path> <operation>`, but received too few arguments\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/gitlfs/DiffusionGitLFSAuthenticateWorkflow.php","lineNumber":36,"sourceCode":"    return $this->loadRepositoryWithPath(\n      $this->getLFSPathArgument(),\n      PhabricatorRepositoryType::REPOSITORY_TYPE_GIT);\n  }\n\n  private function getLFSPathArgument() {\n    return $this->getLFSArgument(0);\n  }\n\n  private function getLFSOperationArgument() {\n    return $this->getLFSArgument(1);\n  }\n\n  private function getLFSArgument($position) {\n    $args = $this->getArgs();\n    $argv = $args->getArg('argv');\n\n    if (!isset($argv[$position])) {\n      throw new Exception(\n        pht(\n          'Expected `git-lfs-authenticate <path> <operation>`, but received '.\n          'too few arguments.'));\n    }\n\n    return $argv[$position];\n  }\n\n  protected function executeRepositoryOperations() {\n    $operation = $this->getLFSOperationArgument();\n\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;","sourceCodeStart":18,"sourceCodeEnd":54,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/gitlfs/DiffusionGitLFSAuthenticateWorkflow.php#L18-L54","documentation":"Error \"Expected `git-lfs-authenticate <path> <operation>`, but received too few arguments.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/diffusion/gitlfs/DiffusionGitLFSAuthenticateWorkflow.php:36 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"}