aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/http/upload_pack.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/transport/http/upload_pack.go')
-rw-r--r--plumbing/transport/http/upload_pack.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/plumbing/transport/http/upload_pack.go b/plumbing/transport/http/upload_pack.go
index e828857..fd1787c 100644
--- a/plumbing/transport/http/upload_pack.go
+++ b/plumbing/transport/http/upload_pack.go
@@ -171,10 +171,13 @@ func uploadPackRequestToReader(req *packp.UploadPackRequest) (*bytes.Buffer, err
return nil, fmt.Errorf("sending upload-req message: %s", err)
}
- if err := req.UploadHaves.Encode(buf); err != nil {
+ if err := req.UploadHaves.Encode(buf, false); err != nil {
return nil, fmt.Errorf("sending haves message: %s", err)
}
- _ = e.EncodeString("done\n")
+ if err := e.EncodeString("done\n"); err != nil {
+ return nil, err
+ }
+
return buf, nil
}