ValidateRemote checks that a named remote is valid for use Mainly to check user-supplied remotes & fail more nicely
(remote string)
| 567 | // ValidateRemote checks that a named remote is valid for use |
| 568 | // Mainly to check user-supplied remotes & fail more nicely |
| 569 | func ValidateRemote(remote string) error { |
| 570 | remotes, err := RemoteList() |
| 571 | if err != nil { |
| 572 | return err |
| 573 | } |
| 574 | return ValidateRemoteFromList(remotes, remote) |
| 575 | } |
| 576 | |
| 577 | // ValidateRemote checks that a named remote is valid for use given a list from |
| 578 | // RemoteList. This is completely identical to ValidateRemote, except that it |
no test coverage detected