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

Method SetValidRemote

config/config.go:289–298  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

287}
288
289func (c *Configuration) SetValidRemote(name string) error {
290 if err := git.ValidateRemote(name); err != nil {
291 name := git.RewriteLocalPathAsURL(name)
292 if err := git.ValidateRemote(name); err != nil {
293 return err
294 }
295 }
296 c.SetRemote(name)
297 return nil
298}
299
300func (c *Configuration) SetValidPushRemote(name string) error {
301 if err := git.ValidateRemote(name); err != nil {

Callers 2

fetchCommandFunction · 0.80
pullCommandFunction · 0.80

Calls 3

SetRemoteMethod · 0.95
ValidateRemoteFunction · 0.92
RewriteLocalPathAsURLFunction · 0.92

Tested by

no test coverage detected