aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-23 14:24:31 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-23 14:24:31 +0100
commitd7bb346dccbca7d4b156d73cab5c39367057c7f7 (patch)
treea17fcb90ee4265e2be359ce311546be65f6f5078
parent4ec4f45195d9bd19a63b9bdca0596b7daba4c4ab (diff)
downloadgit-bug-d7bb346dccbca7d4b156d73cab5c39367057c7f7.tar.gz
prompt: minor aspect fix
-rw-r--r--input/prompt.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/input/prompt.go b/input/prompt.go
index bd3fe4f0..12aa7b92 100644
--- a/input/prompt.go
+++ b/input/prompt.go
@@ -205,6 +205,8 @@ func PromptCredential(target, name string, credentials []auth.Credential, choice
sort.Sort(auth.ById(credentials))
for {
+ _, _ = fmt.Fprintln(os.Stderr)
+
offset := 0
for i, choice := range choices {
_, _ = fmt.Fprintf(os.Stderr, "[%d]: %s\n", i+1, choice)
@@ -213,7 +215,7 @@ func PromptCredential(target, name string, credentials []auth.Credential, choice
if len(credentials) > 0 {
_, _ = fmt.Fprintln(os.Stderr)
- _, _ = fmt.Fprintf(os.Stderr, "Existing %s for %s:", name, target)
+ _, _ = fmt.Fprintf(os.Stderr, "Existing %s for %s:\n", name, target)
for i, cred := range credentials {
meta := make([]string, 0, len(cred.Metadata()))