phacility/phabricator · error · PhutilArgumentUsageException
Commit " " does not exist or is ambiguous.
Error message
Commit "%s" does not exist or is ambiguous.
What it means
Raised in PhabricatorRepositoryManagementWorkflow::loadNamedCommits when a commit name given on the command line is absent from the DiffusionCommitQuery identifier map — the identifier does not resolve to an existing commit or is ambiguous (e.g. a short hash matching multiple commits).
Solutions
- Use a longer or full commit identifier to disambiguate.
- Confirm the commit exists and has been imported in that repository.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/repository/management/PhabricatorRepositoryManagementWorkflow.php:91 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/7fa7e07190b34de2.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/repository/management/PhabricatorRepositoryManagementWorkflow.php:91
return $this->loadNamedCommits($names);
}
protected function loadNamedCommit($name) {
$map = $this->loadNamedCommits(array($name));
return $map[$name];
}
protected function loadNamedCommits(array $names) {
$query = id(new DiffusionCommitQuery())
->setViewer($this->getViewer())
->withIdentifiers($names);
$query->execute();
$map = $query->getIdentifierMap();
foreach ($names as $name) {
if (empty($map[$name])) {
throw new PhutilArgumentUsageException(
pht('Commit "%s" does not exist or is ambiguous.', $name));
}
}
return $map;
}
}
View on GitHub (pinned to 5720a38cfe)