aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/packfile/decoder.go
diff options
context:
space:
mode:
authorAntonio Navarro Perez <antnavper@gmail.com>2017-02-09 10:31:49 +0100
committerGitHub <noreply@github.com>2017-02-09 10:31:49 +0100
commit4f7ef8fe49e4824b741792bca6424b332b40421f (patch)
treeb6c1f2f47679f22db0b1ad6bf8fc745af3ec20b1 /plumbing/format/packfile/decoder.go
parentb65d94e70ea1d013f43234522fa092168e4f1041 (diff)
parentb872b71112ed4034bbd9c33a0babd6353b582429 (diff)
downloadgo-git-4f7ef8fe49e4824b741792bca6424b332b40421f.tar.gz
Merge pull request #258 from ajnavarro/fix/onf-decoder
Fix missing objects if they where deltified using ref-delta
Diffstat (limited to 'plumbing/format/packfile/decoder.go')
-rw-r--r--plumbing/format/packfile/decoder.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/plumbing/format/packfile/decoder.go b/plumbing/format/packfile/decoder.go
index 9f2174b..475d24d 100644
--- a/plumbing/format/packfile/decoder.go
+++ b/plumbing/format/packfile/decoder.go
@@ -225,13 +225,6 @@ func (d *Decoder) decodeIfSpecificType(h *ObjectHeader) (plumbing.EncodedObject,
realType, err = d.ofsDeltaType(h.OffsetReference)
case plumbing.REFDeltaObject:
realType, err = d.refDeltaType(h.Reference)
-
- // If a reference delta is not found, it means that it isn't of
- // the type we are looking for, because we don't have any reference
- // and it is not present into the object storer
- if err == plumbing.ErrObjectNotFound {
- return nil, nil
- }
default:
realType = h.Type
}