MCPcopy Create free account
hub / github.com/go-git/go-git / TestPullDepth

Method TestPullDepth

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

Source from the content-addressed store, hash-verified

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

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