Skip to content

Corrupt tree object blocks mirroring #1795

Open

Description

@kguzek

Summary

Tree 03b0d650c922837b90bade718648200de3a48afc in this repository contains a 6,309-byte pathname (seems like a GCP build log committed as a directory name). This triggers largePathname fsck failures when trying to mirror this repository.

Reproduction

git clone --mirror https://github.com/actions/cache
cd cache
git fsck

Current behavior

git fsck output:

$ git fsck
Checking ref database: 100% (1/1), done.
Checking object directories: 100% (256/256), done.
warning in tree 03b0d650c922837b90bade718648200de3a48afc: largePathname: contains excessively large pathname
Checking objects: 100% (13494/13494), done.

Expected behavior

No warning about largePathname

Suggested course of action

Could a repo admin run a git gc with ref cleanup, or remove the offending PR refs to allow this object to be pruned?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions