diff options
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | internal/service/smarthttp/receive_pack.go | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8354e702a..3033aa193 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ UNRELEASED https://gitlab.com/gitlab-org/gitaly/merge_requests/164 - Add support for structured logging via logrus https://gitlab.com/gitlab-org/gitaly/merge_requests/163 +- Set GL_PROTOCOL during SmartHTTP.PostReceivePack + https://gitlab.com/gitlab-org/gitaly/merge_requests/169 v0.10.0 diff --git a/internal/service/smarthttp/receive_pack.go b/internal/service/smarthttp/receive_pack.go index 457b30fa1..aaf084b4b 100644 --- a/internal/service/smarthttp/receive_pack.go +++ b/internal/service/smarthttp/receive_pack.go @@ -29,7 +29,10 @@ func (s *server) PostReceivePack(stream pb.SmartHTTP_PostReceivePackServer) erro stdout := pbhelper.NewSendWriter(func(p []byte) error { return stream.Send(&pb.PostReceivePackResponse{Data: p}) }) - env := []string{fmt.Sprintf("GL_ID=%s", req.GlId)} + env := []string{ + fmt.Sprintf("GL_ID=%s", req.GlId), + "GL_PROTOCOL=http", + } if req.GlRepository != "" { env = append(env, fmt.Sprintf("GL_REPOSITORY=%s", req.GlRepository)) } |