aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/protocol/packp/updreq_decode.go
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2016-12-15 09:36:31 +0100
committerGitHub <noreply@github.com>2016-12-15 09:36:31 +0100
commit130bc17dfe2ed88e2f122a0b44a9a45f5114697d (patch)
tree93c0f6919426ac586369a6d3eeb0661cefe5f1cd /plumbing/protocol/packp/updreq_decode.go
parent0af572dd21c0aa79d13745b633ee24ba6c4d6cf1 (diff)
downloadgo-git-130bc17dfe2ed88e2f122a0b44a9a45f5114697d.tar.gz
protocol/packp: use ReferenceName type for Command.Name. (#187)
Diffstat (limited to 'plumbing/protocol/packp/updreq_decode.go')
-rw-r--r--plumbing/protocol/packp/updreq_decode.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/plumbing/protocol/packp/updreq_decode.go b/plumbing/protocol/packp/updreq_decode.go
index 2ebe2a3..51e8183 100644
--- a/plumbing/protocol/packp/updreq_decode.go
+++ b/plumbing/protocol/packp/updreq_decode.go
@@ -207,7 +207,10 @@ func parseCommand(b []byte) (*Command, error) {
return nil, errInvalidCommandLineLength(len(b))
}
- var os, ns, n string
+ var (
+ os, ns string
+ n plumbing.ReferenceName
+ )
if _, err := fmt.Sscanf(string(b), "%s %s %s", &os, &ns, &n); err != nil {
return nil, errMalformedCommand(err)
}