Skip to content

Commit

Permalink
Merge pull request #794 from aryan9600/fix-bitbucket-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddeco authored Jun 23, 2022
2 parents 7c07b7a + 7a708ac commit bc28ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/git/libgit2/managed/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func createClientRequest(targetURL string, action git2go.SmartServiceAction,

// Apply authentication and TLS settings to the HTTP transport.
if authOpts != nil {
if len(authOpts.Username) > 0 {
if authOpts.Username != "" && authOpts.Password != "" {
req.SetBasicAuth(authOpts.Username, authOpts.Password)
}
if len(authOpts.CAFile) > 0 {
Expand Down

0 comments on commit bc28ad5

Please sign in to comment.