File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -170,15 +170,21 @@ func statusRun(opts *StatusOptions) error {
170170 addMsg ("%s Logged in to %s as %s" , utils .GreenCheck (), hostname , utils .Bold (username ))
171171 proto , _ := cfg .Get (hostname , "git_protocol" )
172172 if proto != "" {
173- addMsg ("Git operations for %s configured to use %s protocol." , hostname , utils .Bold (proto ))
173+ addMsg ("%s Git operations for %s configured to use %s protocol." ,
174+ utils .GreenCheck (), hostname , utils .Bold (proto ))
174175 }
176+ addMsg ("" )
175177 }
176178
177179 // NB we could take this opportunity to add or fix the "user" key in the hosts config. I chose
178180 // not to since I wanted this command to be read-only.
179181 }
180182
181- for hostname , lines := range statusInfo {
183+ for _ , hostname := range hostnames {
184+ lines , ok := statusInfo [hostname ]
185+ if ! ok {
186+ continue
187+ }
182188 fmt .Fprintf (stderr , "%s\n " , utils .Bold (hostname ))
183189 for _ , line := range lines {
184190 fmt .Fprintf (stderr , "\t %s\n " , line )
You can’t perform that action at this time.
0 commit comments