As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit 232a02cb authored by Vasilii Iakliushin's avatar Vasilii Iakliushin
Browse files

Add a log entry for new Git over SSH flow

parent c13b1f48
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -12,6 +12,7 @@ import (
"gitlab.com/gitlab-org/gitlab-shell/v14/internal/gitlabnet/accessverifier"
"gitlab.com/gitlab-org/gitlab-shell/v14/internal/gitlabnet/git"
"gitlab.com/gitlab-org/gitlab-shell/v14/internal/pktline"
"gitlab.com/gitlab-org/labkit/log"
)
const pullService = "git-upload-pack"
Loading
Loading
@@ -41,8 +42,9 @@ func (c *PullCommand) Execute(ctx context.Context) error {
// For Git over SSH routing
if data.GeoProxyFetchSSHDirectToPrimary {
client.Headers["Git-Protocol"] = c.Args.Env.GitProtocolVersion
log.ContextLogger(ctx).Info("Using Git over SSH upload pack")
client.Headers["Git-Protocol"] = c.Args.Env.GitProtocolVersion
return c.requestSSHUploadPack(ctx, client)
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment