From ef1a0579fbc6aac510313ce073d1dd8fc8a9202b Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Tue, 29 Nov 2016 15:11:00 +0100 Subject: 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 --- plumbing/protocol/packp/advrefs_encode.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plumbing/protocol/packp/advrefs_encode.go') diff --git a/plumbing/protocol/packp/advrefs_encode.go b/plumbing/protocol/packp/advrefs_encode.go index 3c5df19..05a9c8e 100644 --- a/plumbing/protocol/packp/advrefs_encode.go +++ b/plumbing/protocol/packp/advrefs_encode.go @@ -7,6 +7,7 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/plumbing/format/pktline" + "gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability" ) // Encode writes the AdvRefs encoding to a writer. @@ -89,13 +90,11 @@ func formatSeparator(h *plumbing.Hash) string { return head } -func formatCaps(c *Capabilities) string { +func formatCaps(c *capability.List) string { if c == nil { return "" } - c.Sort() - return c.String() } -- cgit