Skip to content

Commit a24ad15

Browse files
aledbfroboquat
authored andcommitted
[content-service] Switch to http/1.1 for gitlab.com repositories
1 parent f4d13b5 commit a24ad15

File tree

1 file changed

+5
-0
lines changed
  • components/content-service/pkg/initializer

1 file changed

+5
-0
lines changed

components/content-service/pkg/initializer/git.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ func (ws *GitInitializer) Run(ctx context.Context, mappings []archive.IDMapping)
7474
return err
7575
}
7676

77+
// TODO: remove workaround once https://gitlab.com/gitlab-org/gitaly/-/issues/4248 is fixed
78+
if strings.Contains(ws.RemoteURI, "gitlab.com") {
79+
_ = ws.Git(ctx, "config", "http.version", "HTTP/1.1")
80+
}
81+
7782
log.WithField("stage", "init").WithField("location", ws.Location).Debug("Running git clone on workspace")
7883
return ws.Clone(ctx)
7984
}

0 commit comments

Comments
 (0)