aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/server
diff options
context:
space:
mode:
author🚀 Steven Ewing 🌌 <steven.ewing@coinbase.com>2022-05-20 14:05:47 -0700
committerMáximo Cuadros <mcuadros@gmail.com>2022-09-22 10:21:19 +0200
commit36e1f5b74cb7fc57e6bbbcfeca66eb79a644c86b (patch)
tree896e134b87ba349c4a99b3f6f4f819baff1d368b /plumbing/transport/server
parentc35b8082c863f2106de1c3c95ba9ed21d30f9371 (diff)
downloadgo-git-36e1f5b74cb7fc57e6bbbcfeca66eb79a644c86b.tar.gz
plumbing: packp and server, Include the contents of `GO_GIT_USER_AGENT_EXTRA` as the git user agent. Fixes #529
Diffstat (limited to 'plumbing/transport/server')
-rw-r--r--plumbing/transport/server/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/transport/server/server.go b/plumbing/transport/server/server.go
index 8ab70fe..11fa0c8 100644
--- a/plumbing/transport/server/server.go
+++ b/plumbing/transport/server/server.go
@@ -189,7 +189,7 @@ func (s *upSession) objectsToUpload(req *packp.UploadPackRequest) ([]plumbing.Ha
}
func (*upSession) setSupportedCapabilities(c *capability.List) error {
- if err := c.Set(capability.Agent, capability.DefaultAgent); err != nil {
+ if err := c.Set(capability.Agent, capability.DefaultAgent()); err != nil {
return err
}
@@ -355,7 +355,7 @@ func (s *rpSession) reportStatus() *packp.ReportStatus {
}
func (*rpSession) setSupportedCapabilities(c *capability.List) error {
- if err := c.Set(capability.Agent, capability.DefaultAgent); err != nil {
+ if err := c.Set(capability.Agent, capability.DefaultAgent()); err != nil {
return err
}