diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-05-30 17:47:01 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-05-30 17:49:34 +0300 |
commit | 65fd92b3f9b9066fe3e202d2b2eb0fb513f9905e (patch) | |
tree | ca82f14a262917a11705c483823cc81c6ef6f3c9 | |
parent | 78ff6ab9ff1098c6cf2a0fb7abcb97ab0f505fd5 (diff) |
Set GL_PROTOCOL during SmartHTTP.PostReceivePack
-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)) } |