diff options
author | 🚀 Steven Ewing 🌌 <steven.ewing@coinbase.com> | 2022-05-20 14:05:47 -0700 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2022-09-22 10:21:19 +0200 |
commit | 36e1f5b74cb7fc57e6bbbcfeca66eb79a644c86b (patch) | |
tree | 896e134b87ba349c4a99b3f6f4f819baff1d368b /plumbing/protocol/packp/updreq.go | |
parent | c35b8082c863f2106de1c3c95ba9ed21d30f9371 (diff) | |
download | go-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/protocol/packp/updreq.go')
-rw-r--r-- | plumbing/protocol/packp/updreq.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/protocol/packp/updreq.go b/plumbing/protocol/packp/updreq.go index 5dbd8ac..8f39b39 100644 --- a/plumbing/protocol/packp/updreq.go +++ b/plumbing/protocol/packp/updreq.go @@ -59,7 +59,7 @@ func NewReferenceUpdateRequestFromCapabilities(adv *capability.List) *ReferenceU r := NewReferenceUpdateRequest() if adv.Supports(capability.Agent) { - r.Capabilities.Set(capability.Agent, capability.DefaultAgent) + r.Capabilities.Set(capability.Agent, capability.DefaultAgent()) } if adv.Supports(capability.ReportStatus) { |