From 9ba1889f24108cc2d256929ea5634d1245eb643c Mon Sep 17 00:00:00 2001 From: Janhavi Alekar <97527096+JanhaviAlekar@users.noreply.github.com> Date: Wed, 14 Aug 2024 11:21:23 +0530 Subject: [PATCH] all repo support in chaoshub (#4748) Signed-off-by: JanhaviAlekar Co-authored-by: Namkyu Park <53862866+namkyu1999@users.noreply.github.com> Co-authored-by: Saranya Jena Signed-off-by: sagnik3788 <116512372+sagnik3788@users.noreply.github.com> --- 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{