[Dev] Fixed lefthook to no longer reset submodules on file checkouts

https://github.com/pagefaultgames/pokerogue/pull/6113
This commit is contained in:
Bertie690 2025-07-19 01:42:23 -04:00 committed by GitHub
parent a81e187164
commit 626eb3da87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,4 +15,6 @@ post-merge:
post-checkout:
commands:
update-submodules:
run: git submodule update --init --recursive
# 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