diff --git a/cmd/gitaly-ssh/upload_pack.go b/cmd/gitaly-ssh/upload_pack.go index c6fbf4b89afb8ad85e69cd21365406c4f3162798..ea005a4e5df776034e92198205b445cf7c23053f 100644 --- a/cmd/gitaly-ssh/upload_pack.go +++ b/cmd/gitaly-ssh/upload_pack.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "os" + "strings" "github.com/golang/protobuf/jsonpb" "gitlab.com/gitlab-org/gitaly/client" @@ -17,6 +18,12 @@ func uploadPack(ctx context.Context, conn *grpc.ClientConn, req string) (int32, return 0, fmt.Errorf("json unmarshal: %v", err) } + gitConfig := os.Getenv("GL_CONFIG_OPTIONS") + + if len(gitConfig) > 0 { + request.GitConfigOptions = append(request.GitConfigOptions, strings.Split(gitConfig, " ")...) + } + ctx, cancel := context.WithCancel(ctx) defer cancel()