diff options
Diffstat (limited to 'remote.go')
-rw-r--r-- | remote.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -161,10 +161,11 @@ func (r *Remote) buildRequest( } func (r *Remote) updateObjectStorage(reader io.Reader) error { - stream := packfile.NewStream(reader) + stream := packfile.NewScannerFromReader(reader) d := packfile.NewDecoder(stream, r.s.ObjectStorage()) - return d.Decode() + _, err := d.Decode() + return err } func (r *Remote) updateLocalReferenceStorage(specs []config.RefSpec, refs []*core.Reference) error { |