diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2018-10-30 12:46:18 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2018-10-30 12:46:18 +0300 |
commit | 4804718ebca633d5a4cf60fd52aee884c33d67bb (patch) | |
tree | f211ef57d1d15732f1cd3475e663b0aa08177a53 | |
parent | ea5f1fb37731242f751340d47576c9824ac31c67 (diff) | |
parent | 302317adab763a4263eca25155f1456dcf4b7ccb (diff) |
Merge branch 'fix/protocol-constant' into 'master'
Use constant in protocol check
See merge request gitlab-org/gitaly!949
-rw-r--r-- | internal/git/protocol.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/git/protocol.go b/internal/git/protocol.go index 83d6d3bef..950d4bcd5 100644 --- a/internal/git/protocol.go +++ b/internal/git/protocol.go @@ -39,7 +39,7 @@ func AddGitProtocolEnv(ctx context.Context, req RequestWithGitProtocol, env []st service, method := methodFromContext(ctx) if req.GetGitProtocol() == ProtocolV2 { - env = append(env, fmt.Sprintf("GIT_PROTOCOL=%s", req.GetGitProtocol())) + env = append(env, fmt.Sprintf("GIT_PROTOCOL=%s", ProtocolV2)) gitProtocolRequests.WithLabelValues(service, method, "v2").Inc() } else { |