From ed288b30de1ac3dcb3ce675c4b9af89eb4e6fcba Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Tue, 21 Feb 2017 16:03:39 +0100 Subject: documentation and API improvements --- repository_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'repository_test.go') diff --git a/repository_test.go b/repository_test.go index 6a9c14a..89ea188 100644 --- a/repository_test.go +++ b/repository_test.go @@ -299,10 +299,9 @@ func (s *RepositorySuite) TestPlainCloneWithRecurseSubmodules(c *C) { defer os.RemoveAll(dir) path := fixtures.ByTag("submodule").One().Worktree().Base() - r, err := PlainClone(dir, false, &CloneOptions{ URL: fmt.Sprintf("file://%s", path), - RecurseSubmodules: DefaultRecursivity, + RecurseSubmodules: DefaultSubmoduleRecursionDepth, }) c.Assert(err, IsNil) @@ -595,7 +594,7 @@ func (s *RepositorySuite) TestPullProgressWithRecursion(c *C) { }) err = r.Pull(&PullOptions{ - RecurseSubmodules: DefaultRecursivity, + RecurseSubmodules: DefaultSubmoduleRecursionDepth, }) c.Assert(err, IsNil) -- cgit