Skip to content

hooks: Override the user agent to Gitaly

Zeger-Jan van de Weg requested to merge zj-set-user-agent-hook-api-calls into master

GitLab-Shell provides Gitaly with the client to connect to GitLab-Rails. This sets the user agent for the HTTP requests to GitLab-Shell, and thus Gitaly isn't easy to spot in logs.

This change sets the Gitaly version string as user agent, which than also allows to differentiate versions during deploys.

Merge request reports