From 3e10d3452b6d26c3884640c7ddde6beb241e7158 Mon Sep 17 00:00:00 2001 From: Chuan-kai Lin Date: Mon, 9 Dec 2024 08:36:51 -0800 Subject: [PATCH] deepenGitHistory: do not fetch submodules --- src/actions-util.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 {