(c *C)
| 1184 | } |
| 1185 | |
| 1186 | func (s *RemoteSuite) TestPushInvalidFetchOptions(c *C) { |
| 1187 | r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"qux://foo"}}) |
| 1188 | invalid := config.RefSpec("^*$ñ") |
| 1189 | err := r.Push(&PushOptions{RefSpecs: []config.RefSpec{invalid}}) |
| 1190 | c.Assert(err, Equals, config.ErrRefSpecMalformedSeparator) |
| 1191 | } |
| 1192 | |
| 1193 | func (s *RemoteSuite) TestPushInvalidRefSpec(c *C) { |
| 1194 | r := NewRemote(nil, &config.RemoteConfig{ |