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

Method TestPullDepth

worktree_test.go:309–321  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

307}
308
309func (s *WorktreeSuite) TestPullDepth(c *C) {
310 r, err := Clone(memory.NewStorage(), memfs.New(), &CloneOptions{
311 URL: fixtures.Basic().One().URL,
312 Depth: 1,
313 })
314
315 c.Assert(err, IsNil)
316
317 w, err := r.Worktree()
318 c.Assert(err, IsNil)
319 err = w.Pull(&PullOptions{})
320 c.Assert(err, Equals, nil)
321}
322
323func (s *WorktreeSuite) TestPullAfterShallowClone(c *C) {
324 tempDir := c.MkDir()

Callers

nothing calls this directly

Calls 4

NewStorageFunction · 0.92
CloneFunction · 0.85
WorktreeMethod · 0.80
PullMethod · 0.80

Tested by

no test coverage detected