phacility/phabricator · error · Exception

No repository was found.

Error message

No repository was found.

What it means

Error "No repository was found." thrown in phacility/phabricator.

Source

Thrown at src/applications/diffusion/DiffusionLintSaveRunner.php:81

    $uuid = $api->getRepositoryUUID();
    $remote_uri = $api->getRemoteURI();

    $repository_query = id(new PhabricatorRepositoryQuery())
      ->setViewer(PhabricatorUser::getOmnipotentUser());

    if ($callsign) {
      $repository_query->withCallsigns(array($callsign));
    } else if ($uuid) {
      $repository_query->withUUIDs(array($uuid));
    } else if ($remote_uri) {
      $repository_query->withURIs(array($remote_uri));
    }

    $repository = $repository_query->executeOne();
    $branch_name = $api->getBranchName();

    if (!$repository) {
      throw new Exception(pht('No repository was found.'));
    }

    $this->branch = PhabricatorRepositoryBranch::loadOrCreateBranch(
      $repository->getID(),
      $branch_name);
    $this->conn = $this->branch->establishConnection('w');

    $this->lintCommit = null;
    if (!$this->all) {
      $this->lintCommit = $this->branch->getLintCommit();
    }

    if ($this->lintCommit) {
      try {
        $commit = $this->lintCommit;
        if ($this->svnRoot) {
          $commit = $api->getCanonicalRevisionName('@'.$commit);
        }

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/diffusion/DiffusionLintSaveRunner.php:81 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/255a41ea39c452d7. Report an issue: GitHub.