aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote.go b/remote.go
index f388d87..2605d39 100644
--- a/remote.go
+++ b/remote.go
@@ -163,8 +163,8 @@ func (r *Remote) buildRequest(
func (r *Remote) updateObjectStorage(reader io.Reader) error {
stream := packfile.NewStream(reader)
- d := packfile.NewDecoder(stream)
- return d.Decode(r.s.ObjectStorage())
+ d := packfile.NewDecoder(stream, r.s.ObjectStorage())
+ return d.Decode()
}
func (r *Remote) updateLocalReferenceStorage(specs []config.RefSpec, refs []*core.Reference) error {