(c *C)
| 131 | } |
| 132 | |
| 133 | func (s *RemoteSuite) TestFetch(c *C) { |
| 134 | r := NewRemote(memory.NewStorage(), &config.RemoteConfig{ |
| 135 | URLs: []string{s.GetLocalRepositoryURL(fixtures.ByTag("tags").One())}, |
| 136 | }) |
| 137 | |
| 138 | s.testFetch(c, r, &FetchOptions{ |
| 139 | RefSpecs: []config.RefSpec{ |
| 140 | config.RefSpec("+refs/heads/master:refs/remotes/origin/master"), |
| 141 | }, |
| 142 | }, []*plumbing.Reference{ |
| 143 | plumbing.NewReferenceFromStrings("refs/remotes/origin/master", "f7b877701fbf855b44c0a9e86f3fdce2c298b07f"), |
| 144 | }) |
| 145 | } |
| 146 | |
| 147 | func (s *RemoteSuite) TestFetchToNewBranch(c *C) { |
| 148 | r := NewRemote(memory.NewStorage(), &config.RemoteConfig{ |
nothing calls this directly
no test coverage detected