diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-11-29 15:11:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-29 15:11:00 +0100 |
commit | ef1a0579fbc6aac510313ce073d1dd8fc8a9202b (patch) | |
tree | 6d41484c70cef0ec6b7582e2ac15b9daccf0e54e /plumbing/protocol/packp/ulreq.go | |
parent | 47007c70c5a696472576a522cd0e265a777f97a8 (diff) | |
download | go-git-ef1a0579fbc6aac510313ce073d1dd8fc8a9202b.tar.gz |
protocol/packp: capabilities new Capability entity and List struct, test improvements (#144)
* protocol/pakp: capabilities new Capability entity and List struct, test improvements
* etc: example cloud-config file
* removing sorting from List.String
Diffstat (limited to 'plumbing/protocol/packp/ulreq.go')
-rw-r--r-- | plumbing/protocol/packp/ulreq.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plumbing/protocol/packp/ulreq.go b/plumbing/protocol/packp/ulreq.go index 6ec5b96..be68b26 100644 --- a/plumbing/protocol/packp/ulreq.go +++ b/plumbing/protocol/packp/ulreq.go @@ -4,6 +4,7 @@ import ( "time" "gopkg.in/src-d/go-git.v4/plumbing" + "gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability" ) // UploadRequest values represent the information transmitted on a @@ -11,7 +12,7 @@ import ( // safe, use the New function instead. // This is a low level type, use UploadPackRequest instead. type UploadRequest struct { - Capabilities *Capabilities + Capabilities *capability.List Wants []plumbing.Hash Shallows []plumbing.Hash Depth Depth @@ -46,7 +47,7 @@ func (d DepthReference) isDepth() {} // wanted hash. func NewUploadRequest() *UploadRequest { return &UploadRequest{ - Capabilities: NewCapabilities(), + Capabilities: capability.NewList(), Wants: []plumbing.Hash{}, Shallows: []plumbing.Hash{}, Depth: DepthCommits(0), |