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{