aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/format')
-rw-r--r--plumbing/format/packfile/decoder.go17
1 files changed, 9 insertions, 8 deletions
diff --git a/plumbing/format/packfile/decoder.go b/plumbing/format/packfile/decoder.go
index 765401f..9bfd69b 100644
--- a/plumbing/format/packfile/decoder.go
+++ b/plumbing/format/packfile/decoder.go
@@ -403,12 +403,13 @@ func (d *Decoder) fillOFSDeltaObjectContent(obj plumbing.EncodedObject, offset i
return 0, err
}
- e, ok := d.idx.LookupOffset(uint64(offset))
- var base plumbing.EncodedObject
- if ok {
- base, ok = d.cacheGet(e.Hash)
- }
+ // e, ok := d.idx.LookupOffset(uint64(offset))
+ // if ok {
+ // base, ok = d.cacheGet(e.Hash)
+ // }
+ var base plumbing.EncodedObject
+ ok := false
if !ok {
base, err = d.recallByOffset(offset)
if err != nil {
@@ -446,9 +447,9 @@ func (d *Decoder) recallByOffset(o int64) (plumbing.EncodedObject, error) {
return d.DecodeObjectAt(o)
}
- if e, ok := d.idx.LookupOffset(uint64(o)); ok {
- return d.recallByHashNonSeekable(e.Hash)
- }
+ // if e, ok := d.idx.LookupOffset(uint64(o)); ok {
+ // return d.recallByHashNonSeekable(e.Hash)
+ // }
return nil, plumbing.ErrObjectNotFound
}