diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-07-26 06:24:47 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-07-26 06:24:47 +0200 |
commit | 064051f972e90dd55e6c941f04b58b4a36dfedf1 (patch) | |
tree | c535025453602cfa561d3622c78dc37693f55c82 /worktree_test.go | |
parent | fbf2a4ab4588c78e3d9d0265dba774ae6b388b5f (diff) | |
download | go-git-064051f972e90dd55e6c941f04b58b4a36dfedf1.tar.gz |
*: package context support in Repository, Remote and Submodule
Diffstat (limited to 'worktree_test.go')
-rw-r--r-- | worktree_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/worktree_test.go b/worktree_test.go index 97c4055..150176f 100644 --- a/worktree_test.go +++ b/worktree_test.go @@ -2,6 +2,7 @@ package git import ( "bytes" + "context" "io/ioutil" "os" "path/filepath" @@ -83,7 +84,7 @@ func (s *WorktreeSuite) TestPullUpdateReferencesIfNeeded(c *C) { func (s *WorktreeSuite) TestPullInSingleBranch(c *C) { r, _ := Init(memory.NewStorage(), memfs.New()) - err := r.clone(&CloneOptions{ + err := r.clone(context.Background(), &CloneOptions{ URL: s.GetBasicLocalRepositoryURL(), SingleBranch: true, }) |