Add User Agent to Git Remote Helper

Claude Code·Opus 4.7[1m]·pjbgf·3mo ago·18hr 18min·2 Checkpoints·6 file changes·+231/-14·30.3K tokens

Ensure that the git remote helper sets an user agent so that it can be identified from the server side.

3mo ago·8m

Lint clean. Now run the test suite.

commit changes

3mo ago·47.0s

All touched packages pass. Here's the draft commit (5 files):

Files:

  • cmd/git-remote-entire/main.go (modified)
  • internal/remotehelper/transport/proxy.go (modified)
  • internal/remotehelper/transport/proxy_test.go (modified)
  • internal/entireclient/httpclient/useragent.go (new)
  • internal/entireclient/httpclient/useragent_test.go (new)

Draft commit message:

With trailers:

Want me to proceed with the commit?

yep

3mo ago·28.3s

Committed as 5422e2057 on useragent.

Use the same version for both: githelper.Agent = remotehelper.BinaryName + "/" + versioninfo.Commit httpUserAgent := remotehelper.BinaryName + "/" + versioninfo.Version

3mo ago·51.8s

Draft commit message:

With the standard trailers. Want me to commit?

yep

3mo ago·42.7s

Committed as 890ee7899. Both commits now on useragent branch:

  • 5422e2057 — git-remote-entire: stamp HTTP User-Agent on outbound requests
  • 890ee7899 — git-remote-entire: unify git protocol agent and HTTP User-Agent