Skip to content

LooseObjectStep may fail due to corrupt loose object #1079

@derrickstolee

Description

@derrickstolee

During the LooseObjectStep, we can hit an issue where our loose object is corrupt. We don't respond well, and will continue retrying on every execution:

error: inflate: data stream error (unknown compression method)
error: unable to unpack {oid} header
error: inflate: data stream error (unknown compression method)
error: unable to unpack {oid} header
fatal: loose object {oid} (stored in {path}\gitObjects/{??}/{oid}) is corrupt

We could try to respond to this error by parsing the output and deleting the specific loose object. Perhaps we could make Git more resilient and have it delete the object and continue if corrupt. This would be a behavior change, as normally git pack-objects really should fail if a given object can't be added to the pack.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions