Skip to content

Commit

Permalink
fix: Invert err nil check for opening Git URL (#5077)
Browse files Browse the repository at this point in the history
Thanks @kconley-sq! 馃コ
  • Loading branch information
kylecarbs committed Nov 15, 2022
1 parent b5181aa commit 50b5bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/gitaskpass.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func gitAskpass() *cobra.Command {
return xerrors.Errorf("get git token: %w", err)
}
if token.URL != "" {
if err := openURL(cmd, token.URL); err != nil {
if err := openURL(cmd, token.URL); err == nil {
cmd.Printf("Your browser has been opened to authenticate with Git:\n\n\t%s\n\n", token.URL)
} else {
cmd.Printf("Open the following URL to authenticate with Git:\n\n\t%s\n\n", token.URL)
Expand Down

0 comments on commit 50b5bec

Please sign in to comment.