Skip to content

Commit 196a1f4

Browse files
committed
fix(vcs): Also update submodules with --init in the fallback
Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 828794e commit 196a1f4

File tree

1 file changed

+1
-1
lines changed
  • plugins/version-control-systems/git/src/main/kotlin

1 file changed

+1
-1
lines changed

plugins/version-control-systems/git/src/main/kotlin/Git.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ class Git(
336336
}
337337
}.recover {
338338
// As Git's dumb HTTP transport does not support shallow capabilities, also try to not limit the depth.
339-
val updateArgs = listOfNotNull("submodule", "update", recursive)
339+
val updateArgs = listOfNotNull("submodule", "update", "--init", recursive)
340340
workingTree.runGit(*updateArgs.toTypedArray())
341341
}
342342
}

0 commit comments

Comments
 (0)