(c *C)
| 1178 | } |
| 1179 | |
| 1180 | func (s *RemoteSuite) TestPushInvalidEndpoint(c *C) { |
| 1181 | r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"http://\\"}}) |
| 1182 | err := r.Push(&PushOptions{RemoteName: "foo"}) |
| 1183 | c.Assert(err, ErrorMatches, ".*invalid character.*") |
| 1184 | } |
| 1185 | |
| 1186 | func (s *RemoteSuite) TestPushNonExistentEndpoint(c *C) { |
| 1187 | r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"ssh://non-existent/foo.git"}}) |