phacility/phabricator · error · PhutilArgumentUsageException
Repository " " does not exist!
Error message
Repository "%s" does not exist!
What it means
Argument resolution failure in PhabricatorRepositoryManagementWorkflow::loadRepositories: one of the supplied identifiers did not appear in the repository query's identifier map, i.e. no repository matches that callsign/short name/PHID.
Solutions
- Check the identifier for typos; list repositories with bin/repository list.
- Use the repository's callsign or short name exactly as configured.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/repository/management/PhabricatorRepositoryManagementWorkflow.php:23 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/a9b328e2ee800c36.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/repository/management/PhabricatorRepositoryManagementWorkflow.php:23
protected function loadRepositories(PhutilArgumentParser $args, $param) {
$identifiers = $args->getArg($param);
if (!$identifiers) {
return array();
}
$query = id(new PhabricatorRepositoryQuery())
->setViewer($this->getViewer())
->needURIs(true)
->withIdentifiers($identifiers);
$query->execute();
$map = $query->getIdentifierMap();
foreach ($identifiers as $identifier) {
if (empty($map[$identifier])) {
throw new PhutilArgumentUsageException(
pht(
'Repository "%s" does not exist!',
$identifier));
}
}
// Reorder repositories according to argument order.
$repositories = array_select_keys($map, $identifiers);
return array_values($repositories);
}
protected function loadLocalRepositories(
PhutilArgumentParser $args,
$param,
$ignore_locality = false) {
$repositories = $this->loadRepositories($args, $param);View on GitHub (pinned to 5720a38cfe)