phacility/phabricator · error · Exception

Git LFS is not enabled for this repository.

Error message

Git LFS is not enabled for this repository.

What it means

Feature-flag guard in executeRepositoryOperations: canUseGitLFS() is false for the repository, meaning LFS support has not been enabled for it (per-repository or install-wide configuration). The repository is otherwise a valid Git repo; only the LFS capability check failed.

Solutions

  1. Enable Git LFS for the repository in its configuration
  2. Ensure LFS is enabled install-wide if that is the gating setting
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/applications/diffusion/gitlfs/DiffusionGitLFSAuthenticateWorkflow.php:73 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21). Data as JSON: /api/errors/0b5bbc9153ce01fe. Report an issue: GitHub.

Appendix: source

Thrown at src/applications/diffusion/gitlfs/DiffusionGitLFSAuthenticateWorkflow.php:73

      default:
        throw new Exception(
          pht(
            'Git LFS operation "%s" is not supported by this server.',
            $operation));
    }

    $repository = $this->getRepository();

    if (!$repository->isGit()) {
      throw new Exception(
        pht(
          'Repository "%s" is not a Git repository. Git LFS is only '.
          'supported for Git repositories.',
          $repository->getDisplayName()));
    }

    if (!$repository->canUseGitLFS()) {
      throw new Exception(
        pht('Git LFS is not enabled for this repository.'));
    }

    // NOTE: This is usually the same as the default URI (which does not
    // need to be specified in the response), but the protocol or domain may
    // differ in some situations.

    $lfs_uri = $repository->getGitLFSURI('info/lfs');

    // Generate a temporary token to allow the user to access LFS over HTTP.
    // This works even if normal HTTP repository operations are not available
    // on this host, and does not require the user to have a VCS password.

    $user = $this->getSSHUser();

    $authorization = DiffusionGitLFSTemporaryTokenType::newHTTPAuthorization(
      $repository,
      $user,

View on GitHub (pinned to 5720a38cfe)