(c *C)
| 285 | } |
| 286 | |
| 287 | func (s *WorktreeSuite) TestPullAlreadyUptodate(c *C) { |
| 288 | path := fixtures.Basic().ByTag("worktree").One().Worktree().Root() |
| 289 | |
| 290 | fs := memfs.New() |
| 291 | r, err := Clone(memory.NewStorage(), fs, &CloneOptions{ |
| 292 | URL: filepath.Join(path, ".git"), |
| 293 | }) |
| 294 | |
| 295 | c.Assert(err, IsNil) |
| 296 | |
| 297 | w, err := r.Worktree() |
| 298 | c.Assert(err, IsNil) |
| 299 | err = util.WriteFile(fs, "bar", []byte("bar"), 0755) |
| 300 | c.Assert(err, IsNil) |
| 301 | w.Add("bar") |
| 302 | _, err = w.Commit("bar", &CommitOptions{Author: defaultSignature()}) |
| 303 | c.Assert(err, IsNil) |
| 304 | |
| 305 | err = w.Pull(&PullOptions{}) |
| 306 | c.Assert(err, Equals, NoErrAlreadyUpToDate) |
| 307 | } |
| 308 | |
| 309 | func (s *WorktreeSuite) TestPullDepth(c *C) { |
| 310 | r, err := Clone(memory.NewStorage(), memfs.New(), &CloneOptions{ |
nothing calls this directly
no test coverage detected