Skip to content

Commit

Permalink
all repo support in chaoshub (#4748)
Browse files Browse the repository at this point in the history
Signed-off-by: JanhaviAlekar <[email protected]>
Co-authored-by: Namkyu Park <[email protected]>
Co-authored-by: Saranya Jena <[email protected]>
  • Loading branch information
3 people authored Aug 14, 2024
1 parent 69982ee commit 3959491
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chaoscenter/graphql/server/pkg/chaoshub/ops/gitops.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit 3959491

Please sign in to comment.