mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix: Invert err nil check for opening Git URL (#5077)
Thanks @kconley-sq! 🥳
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user