Skip to content

Commit 149ae9a

Browse files
Fix git_test.go: use SubmoduleDepth int instead of Submodules bool
1 parent 68ace4b commit 149ae9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

git/git_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,13 +551,13 @@ func TestCloneOptionsFromOptions_Submodules(t *testing.T) {
551551
Filesystem: fs,
552552
WorkspaceFolder: "/workspace",
553553
GitURL: "https://example.com/example/repo.git",
554-
GitCloneSubmodules: true,
554+
GitCloneSubmodules: 10,
555555
GitCloneThinPack: true,
556556
}
557557

558558
cloneOpts, err := git.CloneOptionsFromOptions(t.Logf, opts)
559559
require.NoError(t, err)
560-
require.True(t, cloneOpts.Submodules)
560+
require.Equal(t, 10, cloneOpts.SubmoduleDepth)
561561
}
562562

563563
// generates a random ed25519 private key

0 commit comments

Comments
 (0)