aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/protocol/packp/capability/capability.go
diff options
context:
space:
mode:
authorOri Rawlings <orirawlings@gmail.com>2017-10-23 09:09:21 -0500
committerOri Rawlings <orirawlings@gmail.com>2017-10-23 09:09:25 -0500
commit4b2b0491c6dea9b28f1c1fa6e64843cfb974b388 (patch)
tree0f306509d40eca8a70101a54f6207a1dcfc45c7b /plumbing/protocol/packp/capability/capability.go
parentb345ed745d8044fddbb1da0a8010828ec550f294 (diff)
downloadgo-git-4b2b0491c6dea9b28f1c1fa6e64843cfb974b388.tar.gz
packp/capability: Skip argument validations for unknown capabilities
Fixes #623
Diffstat (limited to 'plumbing/protocol/packp/capability/capability.go')
-rw-r--r--plumbing/protocol/packp/capability/capability.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/protocol/packp/capability/capability.go b/plumbing/protocol/packp/capability/capability.go
index 96d93f6..a129781 100644
--- a/plumbing/protocol/packp/capability/capability.go
+++ b/plumbing/protocol/packp/capability/capability.go
@@ -234,7 +234,7 @@ const (
const DefaultAgent = "go-git/4.x"
-var valid = map[Capability]bool{
+var known = map[Capability]bool{
MultiACK: true, MultiACKDetailed: true, NoDone: true, ThinPack: true,
Sideband: true, Sideband64k: true, OFSDelta: true, Agent: true,
Shallow: true, DeepenSince: true, DeepenNot: true, DeepenRelative: true,