diff options
| author | 2025-11-20 08:00:00 +0800 | |
|---|---|---|
| committer | 2025-11-20 08:00:00 +0800 | |
| commit | fc157e9c71a0c64ff27ff0428eb68ca5660dd495 (patch) | |
| tree | ab0c885ada4ae9b121b23e37e554bb763fe1019d /pack_pack.go | |
| parent | refs: Support resolving hashes as refs (diff) | |
| signature | No signature | |
Revert "Add initial support for multi pack indexes"
This reverts commit 6f8acbf1503d2fa1ef705d35a743fc6b279942e5.
Apparently my MIDX support is broken and it breaks some repos...
it'll be added back when ready.
Diffstat (limited to 'pack_pack.go')
| -rw-r--r-- | pack_pack.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/pack_pack.go b/pack_pack.go index 2f9cd513..3913d580 100644 --- a/pack_pack.go +++ b/pack_pack.go @@ -34,19 +34,6 @@ func (repo *Repository) packRead(id Hash) (StoredObject, error) { } func (repo *Repository) packIndexFind(id Hash) (packlocation, error) { - midx, err := repo.multiPackIndex() - if err == nil { - loc, err := midx.lookup(id) - if err == nil { - return loc, nil - } - if !errors.Is(err, ErrNotFound) { - return packlocation{}, err - } - } else if !errors.Is(err, ErrNotFound) { - return packlocation{}, err - } - idxs, err := repo.packIndexes() if err != nil { return packlocation{}, err |
