From 177cf7d35ba8d93ecc404d618c56bc4888045b9c Mon Sep 17 00:00:00 2001 From: William Martin Date: Thu, 16 May 2024 13:11:00 +0200 Subject: [PATCH] Rename gitcredentials Configure to ConfigureOurs --- pkg/cmd/auth/shared/git_credential.go | 2 +- pkg/cmd/auth/shared/gitcredentials/gitcredentials.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/auth/shared/git_credential.go b/pkg/cmd/auth/shared/git_credential.go index 5a9c20b44..7ddd9aeae 100644 --- a/pkg/cmd/auth/shared/git_credential.go +++ b/pkg/cmd/auth/shared/git_credential.go @@ -60,7 +60,7 @@ func (flow *GitCredentialFlow) gitCredentialSetup(hostname, username, password s // If there is no credential helper configured then we will set ourselves up as // the credential helper for this host. if !flow.helper.IsConfigured() { - return flow.HelperConfig.Configure(hostname) + return flow.HelperConfig.ConfigureOurs(hostname) } // Otherwise, we'll tell git to inform the existing credential helper of the new credentials. diff --git a/pkg/cmd/auth/shared/gitcredentials/gitcredentials.go b/pkg/cmd/auth/shared/gitcredentials/gitcredentials.go index 50ce7502d..2c1e7ddcf 100644 --- a/pkg/cmd/auth/shared/gitcredentials/gitcredentials.go +++ b/pkg/cmd/auth/shared/gitcredentials/gitcredentials.go @@ -18,7 +18,7 @@ type HelperConfig struct { GitClient *git.Client } -func (hc *HelperConfig) Configure(hostname string) error { +func (hc *HelperConfig) ConfigureOurs(hostname string) error { ctx := context.TODO() credHelperKeys := []string{