(c *C)
| 63 | } |
| 64 | |
| 65 | func (s *RemoteSuite) TestFetchInvalidFetchOptions(c *C) { |
| 66 | r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"qux://foo"}}) |
| 67 | invalid := config.RefSpec("^*$ñ") |
| 68 | err := r.Fetch(&FetchOptions{RefSpecs: []config.RefSpec{invalid}}) |
| 69 | c.Assert(err, Equals, config.ErrRefSpecMalformedSeparator) |
| 70 | } |
| 71 | |
| 72 | func (s *RemoteSuite) TestFetchWildcard(c *C) { |
| 73 | r := NewRemote(memory.NewStorage(), &config.RemoteConfig{ |