8000 fix: Invert err nil check for opening Git URL (#5077) · coder/coder@50b5bec · GitHub
[go: up one dir, main page]

Skip to content

Commit 50b5bec

Browse files
authored
fix: Invert err nil check for opening Git URL (#5077)
Thanks @kconley-sq! 🥳
1 parent b5181aa commit 50b5bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/gitaskpass.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func gitAskpass() *cobra.Command {
5151
return xerrors.Errorf("get git token: %w", err)
5252
}
5353
if token.URL != "" {
54-
if err := openURL(cmd, token.URL); err != nil {
54+
if err := openURL(cmd, token.URL); err == nil {
5555
cmd.Printf("Your browser has been opened to authenticate with Git:\n\n\t%s\n\n", token.URL)
5656
} else {
5757
cmd.Printf("Open the following URL to authenticate with Git:\n\n\t%s\n\n", token.URL)

0 commit comments

Comments
 (0)
0