phacility/phabricator · error · Exception

A repository callsign must be at least one character long.

Error message

A repository callsign must be at least one character long.

What it means

Error "A repository callsign must be at least one character long." thrown in phacility/phabricator.

Source

Thrown at src/applications/repository/storage/PhabricatorRepository.php:448

        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(
          'The callsign "%s" is not a valid repository callsign. Callsigns '.
          'must be no more than 32 bytes long.',
          $callsign));
    }

    if (!preg_match('/^[A-Z]+\z/', $callsign)) {
      throw new Exception(
        pht(
          'The callsign "%s" is not a valid repository callsign. Callsigns '.
          'may only contain UPPERCASE letters.',
          $callsign));

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/repository/storage/PhabricatorRepository.php:448 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/4225ee27fc7c1f9f. Report an issue: GitHub.