(name string)
| 298 | } |
| 299 | |
| 300 | func (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 | |
| 311 | func (c *Configuration) SetRemote(name string) { |
| 312 | c.currentRemote = &name |
no test coverage detected