phacility/phabricator · error · Exception
The name "%s" is not a valid repository short name. Reposito
Error message
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.
What it means
Error "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." thrown in phacility/phabricator.
Source
Thrown at src/applications/repository/storage/PhabricatorRepository.php:437
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)) {
throw new Exception(
pht(
'A repository callsign must be at least one character long.'));
}
if (strlen($callsign) > 32) {
throw new Exception(
pht(View on GitHub (pinned to 5720a38cfe)
When it happens
Trigger: Thrown at src/applications/repository/storage/PhabricatorRepository.php:437 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/f01d8da6bb86f4cb.
Report an issue: GitHub.