Skip to content

Commit 5640a80

Browse files
committed
fix: output askpass to stderr
This fixes askpass not outputting a prompt.
1 parent 121c2bc commit 5640a80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cli/gitaskpass.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ func (r *RootCmd) gitAskpass() *clibase.Cmd {
5151
}
5252
if token.URL != "" {
5353
if err := openURL(inv, token.URL); err == nil {
54-
cliui.Infof(inv.Stdout, "Your browser has been opened to authenticate with Git:\n\n\t%s\n\n", token.URL)
54+
cliui.Infof(inv.Stderr, "Your browser has been opened to authenticate with Git:\n\n\t%s\n\n", token.URL)
5555
} else {
56-
cliui.Infof(inv.Stdout, "Open the following URL to authenticate with Git:\n\n\t%s\n\n", token.URL)
56+
cliui.Infof(inv.Stderr, "Open the following URL to authenticate with Git:\n\n\t%s\n\n", token.URL)
5757
}
5858

5959
for r := retry.New(250*time.Millisecond, 10*time.Second); r.Wait(ctx); {
6060
token, err = client.GitAuth(ctx, host, true)
6161
if err != nil {
6262
continue
6363
}
64-
cliui.Infof(inv.Stdout, "You've been authenticated with Git!\n")
64+
cliui.Infof(inv.Stderr, "You've been authenticated with Git!\n")
6565
break
6666
}
6767
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy