Skip to content

Commit 3959491

Browse files
JanhaviAlekarnamkyu1999Saranya-jena
authored
all repo support in chaoshub (#4748)
Signed-off-by: JanhaviAlekar <janhavialekar@gmail.com> Co-authored-by: Namkyu Park <53862866+namkyu1999@users.noreply.github.com> Co-authored-by: Saranya Jena <saranya.jena@harness.io>
1 parent 69982ee commit 3959491

File tree

1 file changed

+5
-0
lines changed
  • chaoscenter/graphql/server/pkg/chaoshub/ops

1 file changed

+5
-0
lines changed

chaoscenter/graphql/server/pkg/chaoshub/ops/gitops.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99

1010
"github.com/go-git/go-git/v5"
1111
"github.com/go-git/go-git/v5/plumbing"
12+
"github.com/go-git/go-git/v5/plumbing/protocol/packp/capability"
1213
"github.com/go-git/go-git/v5/plumbing/transport"
1314
"github.com/go-git/go-git/v5/plumbing/transport/http"
1415
"github.com/go-git/go-git/v5/plumbing/transport/ssh"
@@ -276,6 +277,10 @@ func (c ChaosHubConfig) gitPullPrivateRepo() error {
276277

277278
// generateAuthMethod creates AuthMethod for private repos
278279
func (c ChaosHubConfig) generateAuthMethod() (transport.AuthMethod, error) {
280+
transport.UnsupportedCapabilities = []capability.Capability{
281+
capability.ThinPack,
282+
}
283+
279284
var auth transport.AuthMethod
280285
if c.AuthType == model.AuthTypeToken {
281286
auth = &http.BasicAuth{

0 commit comments

Comments
 (0)