diff --git a/pkg/cmd/auth/login/login_test.go b/pkg/cmd/auth/login/login_test.go index e1bcfdbf6..60c6f6f24 100644 --- a/pkg/cmd/auth/login/login_test.go +++ b/pkg/cmd/auth/login/login_test.go @@ -503,7 +503,7 @@ func Test_loginRun_Survey(t *testing.T) { prompterStubs: func(pm *prompter.PrompterMock) { pm.SelectFunc = func(prompt, _ string, opts []string) (int, error) { switch prompt { - case "What is your preferred protocol for Git operations?": + case "What is your preferred protocol for Git operations on this host?": return prompter.IndexFor(opts, "HTTPS") case "How would you like to authenticate GitHub CLI?": return prompter.IndexFor(opts, "Paste an authentication token") @@ -543,7 +543,7 @@ func Test_loginRun_Survey(t *testing.T) { switch prompt { case "What account do you want to log into?": return prompter.IndexFor(opts, "GitHub Enterprise Server") - case "What is your preferred protocol for Git operations?": + case "What is your preferred protocol for Git operations on this host?": return prompter.IndexFor(opts, "HTTPS") case "How would you like to authenticate GitHub CLI?": return prompter.IndexFor(opts, "Paste an authentication token") @@ -586,7 +586,7 @@ func Test_loginRun_Survey(t *testing.T) { switch prompt { case "What account do you want to log into?": return prompter.IndexFor(opts, "GitHub.com") - case "What is your preferred protocol for Git operations?": + case "What is your preferred protocol for Git operations on this host?": return prompter.IndexFor(opts, "HTTPS") case "How would you like to authenticate GitHub CLI?": return prompter.IndexFor(opts, "Paste an authentication token") @@ -620,7 +620,7 @@ func Test_loginRun_Survey(t *testing.T) { switch prompt { case "What account do you want to log into?": return prompter.IndexFor(opts, "GitHub.com") - case "What is your preferred protocol for Git operations?": + case "What is your preferred protocol for Git operations on this host?": return prompter.IndexFor(opts, "SSH") case "How would you like to authenticate GitHub CLI?": return prompter.IndexFor(opts, "Paste an authentication token") @@ -639,7 +639,7 @@ func Test_loginRun_Survey(t *testing.T) { prompterStubs: func(pm *prompter.PrompterMock) { pm.SelectFunc = func(prompt, _ string, opts []string) (int, error) { switch prompt { - case "What is your preferred protocol for Git operations?": + case "What is your preferred protocol for Git operations on this host?": return prompter.IndexFor(opts, "HTTPS") case "How would you like to authenticate GitHub CLI?": return prompter.IndexFor(opts, "Paste an authentication token") @@ -671,7 +671,7 @@ func Test_loginRun_Survey(t *testing.T) { prompterStubs: func(pm *prompter.PrompterMock) { pm.SelectFunc = func(prompt, _ string, opts []string) (int, error) { switch prompt { - case "What is your preferred protocol for Git operations?": + case "What is your preferred protocol for Git operations on this host?": return prompter.IndexFor(opts, "HTTPS") case "How would you like to authenticate GitHub CLI?": return prompter.IndexFor(opts, "Paste an authentication token") diff --git a/pkg/cmd/auth/shared/login_flow.go b/pkg/cmd/auth/shared/login_flow.go index 74a8ca7ad..9e3f369af 100644 --- a/pkg/cmd/auth/shared/login_flow.go +++ b/pkg/cmd/auth/shared/login_flow.go @@ -58,7 +58,7 @@ func Login(opts *LoginOptions) error { "SSH", } result, err := opts.Prompter.Select( - "What is your preferred protocol for Git operations?", + "What is your preferred protocol for Git operations on this host?", options[0], options) if err != nil { diff --git a/pkg/cmd/auth/shared/login_flow_test.go b/pkg/cmd/auth/shared/login_flow_test.go index 626c21290..b14d2228c 100644 --- a/pkg/cmd/auth/shared/login_flow_test.go +++ b/pkg/cmd/auth/shared/login_flow_test.go @@ -52,7 +52,7 @@ func TestLogin_ssh(t *testing.T) { pm := &prompter.PrompterMock{} pm.SelectFunc = func(prompt, _ string, opts []string) (int, error) { switch prompt { - case "What is your preferred protocol for Git operations?": + case "What is your preferred protocol for Git operations on this host?": return prompter.IndexFor(opts, "SSH") case "How would you like to authenticate GitHub CLI?": return prompter.IndexFor(opts, "Paste an authentication token")