MCPcopy
hub / github.com/go-git/go-git / TestFetchExactSHA1_NotSoported

Method TestFetchExactSHA1_NotSoported

remote_test.go:102–115  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

100}
101
102func (s *RemoteSuite) TestFetchExactSHA1_NotSoported(c *C) {
103 r := NewRemote(memory.NewStorage(), &config.RemoteConfig{
104 URLs: []string{s.GetBasicLocalRepositoryURL()},
105 })
106
107 err := r.Fetch(&FetchOptions{
108 RefSpecs: []config.RefSpec{
109 config.RefSpec("35e85108805c84807bc66a02d91535e1e24b38b9:refs/heads/foo"),
110 },
111 })
112
113 c.Assert(err, Equals, ErrExactSHA1NotSupported)
114
115}
116
117func (s *RemoteSuite) TestFetchWildcardTags(c *C) {
118 r := NewRemote(memory.NewStorage(), &config.RemoteConfig{

Callers

nothing calls this directly

Calls 5

FetchMethod · 0.95
NewStorageFunction · 0.92
RefSpecTypeAlias · 0.92
NewRemoteFunction · 0.85

Tested by

no test coverage detected