From 626eb3da87c1a904592e2113b4f59b88a2942546 Mon Sep 17 00:00:00 2001 From: Bertie690 <136088738+Bertie690@users.noreply.github.com> Date: Sat, 19 Jul 2025 01:42:23 -0400 Subject: [PATCH] [Dev] Fixed lefthook to no longer reset submodules on file checkouts https://github.com/pagefaultgames/pokerogue/pull/6113 --- lefthook.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lefthook.yml b/lefthook.yml index 28178432c31..40875073fdd 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -15,4 +15,6 @@ post-merge: post-checkout: commands: update-submodules: - run: git submodule update --init --recursive \ No newline at end of file + # cf https://git-scm.com/docs/githooks#_post_checkout: + # The 3rd argument is 1 for branch checkouts and 0 for file checkouts. + run: if test {3} -eq "1"; then git submodule update --init --recursive; fi \ No newline at end of file