MCPcopy
hub / github.com/git-lfs/git-lfs / ValidateRemote

Function ValidateRemote

git/git.go:569–575  ·  view source on GitHub ↗

ValidateRemote checks that a named remote is valid for use Mainly to check user-supplied remotes & fail more nicely

(remote string)

Source from the content-addressed store, hash-verified

567// ValidateRemote checks that a named remote is valid for use
568// Mainly to check user-supplied remotes & fail more nicely
569func 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

Callers 2

SetValidRemoteMethod · 0.92
SetValidPushRemoteMethod · 0.92

Calls 2

RemoteListFunction · 0.85
ValidateRemoteFromListFunction · 0.85

Tested by

no test coverage detected