phacility/phabricator · error · Exception
The empty string is not a valid repository short name. Repos
Error message
The empty string is not a valid repository short name. Repository short names must be at least one character long.
What it means
Error "The empty string is not a valid repository short name. Repository short names must be at least one character long." thrown in phacility/phabricator.
Source
Thrown at src/applications/repository/storage/PhabricatorRepository.php:372
$name = $this->getCallsign();
}
}
return $name;
}
public static function isValidRepositorySlug($slug) {
try {
self::assertValidRepositorySlug($slug);
return true;
} catch (Exception $ex) {
return false;
}
}
public static function assertValidRepositorySlug($slug) {
if (!strlen($slug)) {
throw new Exception(
pht(
'The empty string is not a valid repository short name. '.
'Repository short names must be at least one character long.'));
}
if (strlen($slug) > 64) {
throw new Exception(
pht(
'The name "%s" is not a valid repository short name. Repository '.
'short names must not be longer than 64 characters.',
$slug));
}
if (preg_match('/[^a-zA-Z0-9._-]/', $slug)) {
throw new Exception(
pht(
'The name "%s" is not a valid repository short name. Repository '.
'short names may only contain letters, numbers, periods, hyphens '.View on GitHub (pinned to 5720a38cfe)
When it happens
Trigger: Thrown at src/applications/repository/storage/PhabricatorRepository.php:372 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/28c00ebd0be24cfe.
Report an issue: GitHub.