phacility/phabricator · error · Exception
The name " " is not a valid repository short name…
Error message
The name "%s" is not a valid repository short name. Repository short names may not contain only numbers.
What it means
Fires from assertValidRepositorySlug when the name consists entirely of digits. A purely numeric slug would be indistinguishable from an object ID in URIs, so transaction validation rejects it; the offending name is interpolated into the message.
Solutions
- Add letters to the short name so it is not purely numeric.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/repository/storage/PhabricatorRepository.php:429 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/b2fab436e0c571bf.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/repository/storage/PhabricatorRepository.php:429
if (preg_match('/__|--|\\.\\./', $slug)) {
throw new Exception(
pht(
'The name "%s" is not a valid repository short name. Repository '.
'short names must not contain multiple consecutive underscores, '.
'hyphens, or periods.',
$slug));
}
if (preg_match('/^[A-Z]+\z/', $slug)) {
throw new Exception(
pht(
'The name "%s" is not a valid repository short name. Repository '.
'short names may not contain only uppercase letters.',
$slug));
}
if (preg_match('/^\d+\z/', $slug)) {
throw new Exception(
pht(
'The name "%s" is not a valid repository short name. Repository '.
'short names may not contain only numbers.',
$slug));
}
if (preg_match('/\\.git/', $slug)) {
throw new Exception(
pht(
'The name "%s" is not a valid repository short name. Repository '.
'short names must not end in ".git". This suffix will be added '.
'automatically in appropriate contexts.',
$slug));
}
}
public static function assertValidCallsign($callsign) {
if (!strlen($callsign)) {View on GitHub (pinned to 5720a38cfe)