phacility/phabricator · error · DiffusionCommitHookRejectException

OVERSIZED FILE This repository ("%s") is configured with a m

Error message

OVERSIZED FILE
This repository ("%s") is configured with a maximum individual file size limit, but you are pushing a change ("%s") which causes the size of a file ("%s") to exceed the limit. The commit makes the file %s bytes long, but the limit for this repository is %s bytes.

What it means

Error "OVERSIZED FILE This repository ("%s") is configured with a maximum individual file size limit, but you are pushing a change ("%s") which causes the size of a file ("%s") to exceed the limit. The commit makes the file %s bytes long, but the limit for this repository is %s bytes." thrown in phacility/phabricator.

Source

Thrown at src/applications/diffusion/engine/DiffusionCommitHookEngine.php:1301

        if ($size <= $limit) {
          continue;
        }

        $message = pht(
          'OVERSIZED FILE'.
          "\n".
          'This repository ("%s") is configured with a maximum individual '.
          'file size limit, but you are pushing a change ("%s") which causes '.
          'the size of a file ("%s") to exceed the limit. The commit makes '.
          'the file %s bytes long, but the limit for this repository is '.
          '%s bytes.',
          $repository->getDisplayName(),
          $identifier,
          $path,
          new PhutilNumber($size),
          new PhutilNumber($limit));

        throw new DiffusionCommitHookRejectException($message);
      }
    }
  }

  private function rejectCommitsAffectingTooManyPaths(array $content_updates) {
    $repository = $this->getRepository();

    $limit = $repository->getTouchLimit();
    if (!$limit) {
      return;
    }

    foreach ($content_updates as $update) {
      $identifier = $update->getRefNew();

      $sizes = $this->getFileSizesForCommit($identifier);
      if (count($sizes) > $limit) {
        $message = pht(

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/diffusion/engine/DiffusionCommitHookEngine.php:1301 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/667919f32b7b62f2. Report an issue: GitHub.