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

Method SetValidPushRemote

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

Source from the content-addressed store, hash-verified

298}
299
300func (c *Configuration) SetValidPushRemote(name string) error {
301 if err := git.ValidateRemote(name); err != nil {
302 name := git.RewriteLocalPathAsURL(name)
303 if err := git.ValidateRemote(name); err != nil {
304 return err
305 }
306 }
307 c.SetPushRemote(name)
308 return nil
309}
310
311func (c *Configuration) SetRemote(name string) {
312 c.currentRemote = &name

Callers 2

prePushCommandFunction · 0.80
pushCommandFunction · 0.80

Calls 3

SetPushRemoteMethod · 0.95
ValidateRemoteFunction · 0.92
RewriteLocalPathAsURLFunction · 0.92

Tested by

no test coverage detected