diff --git a/chaoscenter/graphql/server/pkg/chaoshub/ops/gitops.go b/chaoscenter/graphql/server/pkg/chaoshub/ops/gitops.go index 0f166030645..0a4950efef4 100644 --- a/chaoscenter/graphql/server/pkg/chaoshub/ops/gitops.go +++ b/chaoscenter/graphql/server/pkg/chaoshub/ops/gitops.go @@ -9,6 +9,7 @@ import ( "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing" + "github.com/go-git/go-git/v5/plumbing/protocol/packp/capability" "github.com/go-git/go-git/v5/plumbing/transport" "github.com/go-git/go-git/v5/plumbing/transport/http" "github.com/go-git/go-git/v5/plumbing/transport/ssh" @@ -276,6 +277,10 @@ func (c ChaosHubConfig) gitPullPrivateRepo() error { // generateAuthMethod creates AuthMethod for private repos func (c ChaosHubConfig) generateAuthMethod() (transport.AuthMethod, error) { + transport.UnsupportedCapabilities = []capability.Capability{ + capability.ThinPack, + } + var auth transport.AuthMethod if c.AuthType == model.AuthTypeToken { auth = &http.BasicAuth{