From 3d02db649190ead1576dac78ddd0eed38cba20f8 Mon Sep 17 00:00:00 2001 From: JanhaviAlekar Date: Fri, 5 Jul 2024 21:25:36 +0530 Subject: [PATCH] all repo support in chaoshub Signed-off-by: JanhaviAlekar --- chaoscenter/graphql/server/pkg/chaoshub/ops/gitops.go | 5 +++++ 1 file changed, 5 insertions(+) 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{