phacility/phabricator · error · PhutilArgumentUsageException

Specify exactly one repository to update.

Error message

Specify exactly one repository to update.

What it means

Error "Specify exactly one repository to update." thrown in phacility/phabricator.

Source

Thrown at src/applications/repository/management/PhabricatorRepositoryManagementUpdateWorkflow.php:49

          ),
          array(
            'name'        => 'no-discovery',
            'help'        => pht('Do not perform discovery.'),
          ),
          array(
            'name'        => 'repos',
            'wildcard'    => true,
          ),
        ));
  }

  public function execute(PhutilArgumentParser $args) {
    $this->setVerbose($args->getArg('verbose'));
    $console = PhutilConsole::getConsole();

    $repos = $this->loadLocalRepositories($args, 'repos');
    if (count($repos) !== 1) {
      throw new PhutilArgumentUsageException(
        pht('Specify exactly one repository to update.'));
    }

    $repository = head($repos);

    try {
      id(new PhabricatorRepositoryPullEngine())
        ->setRepository($repository)
        ->setVerbose($this->getVerbose())
        ->pullRepository();

      $no_discovery = $args->getArg('no-discovery');
      if ($no_discovery) {
        return 0;
      }

      // TODO: It would be nice to discover only if we pulled something, but
      // this isn't totally trivial. It's slightly more complicated with

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/repository/management/PhabricatorRepositoryManagementUpdateWorkflow.php:49 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/a17c25e2f21bfea2. Report an issue: GitHub.