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