We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5181aa commit 50b5becCopy full SHA for 50b5bec
cli/gitaskpass.go
@@ -51,7 +51,7 @@ func gitAskpass() *cobra.Command {
51
return xerrors.Errorf("get git token: %w", err)
52
}
53
if token.URL != "" {
54
- if err := openURL(cmd, token.URL); err != nil {
+ if err := openURL(cmd, token.URL); err == nil {
55
cmd.Printf("Your browser has been opened to authenticate with Git:\n\n\t%s\n\n", token.URL)
56
} else {
57
cmd.Printf("Open the following URL to authenticate with Git:\n\n\t%s\n\n", token.URL)
0 commit comments