diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-12-07 11:16:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-07 11:16:59 +0100 |
commit | 01ea726be6ed745a21c88fd61fc5e2a62c4ceb88 (patch) | |
tree | 8e0cbfe502afb3187d93e8da95cc1677794c6df5 /plumbing/protocol/packp/ulreq.go | |
parent | 5990aeb7198a4961a363eeb422a3faa57c8dc029 (diff) | |
download | go-git-01ea726be6ed745a21c88fd61fc5e2a62c4ceb88.tar.gz |
remote: sideband support (#164)
* remote: sideband support
* changes
Diffstat (limited to 'plumbing/protocol/packp/ulreq.go')
-rw-r--r-- | plumbing/protocol/packp/ulreq.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plumbing/protocol/packp/ulreq.go b/plumbing/protocol/packp/ulreq.go index d57c3fc..faf0885 100644 --- a/plumbing/protocol/packp/ulreq.go +++ b/plumbing/protocol/packp/ulreq.go @@ -82,6 +82,12 @@ func NewUploadRequestFromCapabilities(adv *capability.List) *UploadRequest { r.Capabilities.Set(capability.MultiACK) } + if adv.Supports(capability.Sideband64k) { + r.Capabilities.Set(capability.Sideband64k) + } else if adv.Supports(capability.Sideband) { + r.Capabilities.Set(capability.Sideband) + } + if adv.Supports(capability.ThinPack) { r.Capabilities.Set(capability.ThinPack) } |