diff --git a/git/internal/e2e/git_utils.go b/git/internal/e2e/git_utils.go index 0a6e6a89..b066b4ab 100644 --- a/git/internal/e2e/git_utils.go +++ b/git/internal/e2e/git_utils.go @@ -25,18 +25,19 @@ import ( "github.com/fluxcd/pkg/git" "github.com/fluxcd/pkg/git/gogit" "github.com/fluxcd/pkg/git/libgit2" + "github.com/fluxcd/pkg/git/repository" ) -func newClient(gitClient, tmp string, authOptions *git.AuthOptions, insecure bool) (git.RepositoryClient, error) { +func newClient(gitClient, tmp string, authOptions *git.AuthOptions, insecure bool) (repository.Client, error) { switch gitClient { case gogit.ClientName: if insecure { - return gogit.NewClient(tmp, authOptions, gogit.WithInsecureCredentialsOverHTTP, gogit.WithDiskStorage) + return gogit.NewClient(tmp, authOptions, gogit.WithInsecureCredentialsOverHTTP(), gogit.WithDiskStorage()) } return gogit.NewClient(tmp, authOptions) case libgit2.ClientName: if insecure { - return libgit2.NewClient(tmp, authOptions, libgit2.WithInsecureCredentialsOverHTTP, libgit2.WithDiskStorage) + return libgit2.NewClient(tmp, authOptions, libgit2.WithInsecureCredentialsOverHTTP(), libgit2.WithDiskStorage()) } return libgit2.NewClient(tmp, authOptions) }