Skip to content

Commit

Permalink
gohttp -> githttp
Browse files Browse the repository at this point in the history
  • Loading branch information
nimakaviani committed Dec 19, 2023
1 parent a7a37a3 commit fb86cde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/controllers/gitrepository/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/cnoe-io/idpbuilder/pkg/util"
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing/object"
gohttp "github.com/go-git/go-git/v5/plumbing/transport/http"
githttp "github.com/go-git/go-git/v5/plumbing/transport/http"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
Expand Down Expand Up @@ -77,12 +77,12 @@ func (r *RepositoryReconciler) getCredentials(ctx context.Context, repo *v1alpha
return string(username), string(password), nil
}

func (r *RepositoryReconciler) getBasicAuth(ctx context.Context, repo *v1alpha1.GitRepository) (gohttp.BasicAuth, error) {
func (r *RepositoryReconciler) getBasicAuth(ctx context.Context, repo *v1alpha1.GitRepository) (githttp.BasicAuth, error) {
u, p, err := r.getCredentials(ctx, repo)
if err != nil {
return gohttp.BasicAuth{}, err
return githttp.BasicAuth{}, err
}
return gohttp.BasicAuth{
return githttp.BasicAuth{
Username: u,
Password: p,
}, nil
Expand Down

0 comments on commit fb86cde

Please sign in to comment.