aboutsummaryrefslogtreecommitdiffstats
path: root/worktree_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-07-26 14:41:59 +0200
committerGitHub <noreply@github.com>2017-07-26 14:41:59 +0200
commite19163e22eb19b352dd022f6edc9d81e1cd7a7ed (patch)
treeca08a52fdb31bd90637cec71351578436f254b4b /worktree_test.go
parentd7b898ea3be0342f064ad63f93aaffdb6518a5b3 (diff)
parent064051f972e90dd55e6c941f04b58b4a36dfedf1 (diff)
downloadgo-git-e19163e22eb19b352dd022f6edc9d81e1cd7a7ed.tar.gz
Merge pull request #509 from mcuadros/ctx-main
*: package context support in Repository, Remote and Submodule
Diffstat (limited to 'worktree_test.go')
-rw-r--r--worktree_test.go3
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,
})