diff --git a/src/actions-util.ts b/src/actions-util.ts index 99da81262..4e4e772c3 100644 --- a/src/actions-util.ts +++ b/src/actions-util.ts @@ -172,7 +172,14 @@ export const deepenGitHistory = async function () { try { await runGitCommand( getOptionalInput("checkout_path"), - ["fetch", "origin", "HEAD", "--no-tags", "--deepen=1"], + [ + "fetch", + "origin", + "HEAD", + "--no-tags", + "--no-recurse-submodules", + "--deepen=1", + ], "Cannot deepen the shallow repository.", ); } catch {