phacility/phabricator · error · Exception
No repository was found.
Error message
No repository was found.
What it means
Lookup failure in DiffusionLintSaveRunner::run: the runner resolved a callsign, repository UUID, or remote URI from the working-copy API and issued an omnipotent PhabricatorRepositoryQuery, but no repository row matched. The lint process is running against a working copy whose origin cannot be correlated with any tracked Phabricator repository, so there is no repository context to save lint results under.
Solutions
- Verify the working copy's remote URI/callsign matches a repository configured in Phabricator exactly (including protocol and trailing slashes)
- Create or reconfigure the repository in Phabricator so its callsign, UUID, or URI matches the working copy
- If the repository URI changed, update the Phabricator repository record to include the new URI
Defensive patterns
Strategy: fallback
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.
Appendix: 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)