Skip to content

Commit

Permalink
Fix gitea repo bootstrap failure
Browse files Browse the repository at this point in the history
Signed-off-by: gamerslouis <[email protected]>
  • Loading branch information
gamerslouis committed Jul 25, 2023
1 parent 24a23f8 commit fe41e0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/git/provider_gitea.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"fmt"
"net/http"

"github.com/argoproj-labs/argocd-autopilot/pkg/util"

gt "code.gitea.io/sdk/gitea"
)

Expand All @@ -24,7 +26,8 @@ type (
)

func newGitea(opts *ProviderOptions) (Provider, error) {
c, err := gt.NewClient(opts.RepoURL, gt.SetToken(opts.Auth.Password))
host, _, _, _, _, _, _ := util.ParseGitUrl(opts.RepoURL)
c, err := gt.NewClient(host, gt.SetToken(opts.Auth.Password))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit fe41e0d

Please sign in to comment.