aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/protocol/packp/ulreq_encode.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2020-07-10 06:15:38 +0200
committerGitHub <noreply@github.com>2020-07-10 06:15:38 +0200
commitee580ee459d4eac1c434203cc264523acfae724a (patch)
tree30b1e5f4788dd6732694494458c5f15a64ddfe66 /plumbing/protocol/packp/ulreq_encode.go
parent13095f770a0ea9be1c103389269fad1d82c55468 (diff)
parentd07f2fbd7f615707c5f8b4bde32d5824c4196411 (diff)
downloadgo-git-ee580ee459d4eac1c434203cc264523acfae724a.tar.gz
Merge pull request #124 from cristaloleg/use-one-name-for-receiver
*: use only one name for receiver
Diffstat (limited to 'plumbing/protocol/packp/ulreq_encode.go')
-rw-r--r--plumbing/protocol/packp/ulreq_encode.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/protocol/packp/ulreq_encode.go b/plumbing/protocol/packp/ulreq_encode.go
index 4863076..c451e23 100644
--- a/plumbing/protocol/packp/ulreq_encode.go
+++ b/plumbing/protocol/packp/ulreq_encode.go
@@ -15,9 +15,9 @@ import (
// All the payloads will end with a newline character. Wants and
// shallows are sorted alphabetically. A depth of 0 means no depth
// request is sent.
-func (u *UploadRequest) Encode(w io.Writer) error {
+func (req *UploadRequest) Encode(w io.Writer) error {
e := newUlReqEncoder(w)
- return e.Encode(u)
+ return e.Encode(req)
}
type ulReqEncoder struct {